Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 29th, 2004, 08:52 AM
Admin Admin is offline
Developer Shed
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2004
Posts: 961 Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Article Discussion: File Management with PHP

We can find many articles related to uploading, viewing, and downloading files. This article is written on the basic concept of uploading and managing files. File uploading is the process of copying the file from your machine to the remote server. Other users of the same system then share this file by viewing or downloading it. What happens when you upload a file that already exists in the remote folder to which you are uploading?


Read the full article here: File Management with PHP

Reply With Quote
  #2  
Old March 30th, 2004, 06:03 PM
Sauhnik's Avatar
Sauhnik Sauhnik is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 121 Sauhnik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 6 m 11 sec
Reputation Power: 6
Replaces the file
__________________

Reply With Quote
  #3  
Old March 30th, 2004, 09:53 PM
sam_rich sam_rich is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Texas
Posts: 82 sam_rich User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 40 m 34 sec
Reputation Power: 7
What about download management?

Nice article.

But what about tracking the status of a download? Seems like everyone writes about how to upload files, but what about those who want to make sure the user got the file or detect if the user canceled the download. This really is key in a documtent management system when you want to keep an eye on versions and who is allowed to checkout a file.

How can your tell that the file was completely downloaded?
Did the user cancel the download?
Did the user's network connection fail?
If the user canceled the download what is the status of the availablity of the file for checkout by another user?

These are just some of the problems associated with download management that everyone seems to overlook. An article addressing some of these issues with code examples would be a big help.

Thanks.

Reply With Quote
  #4  
Old March 31st, 2004, 07:55 AM
wimvds wimvds is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 wimvds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Lightbulb

Quote:
Originally Posted by sam_rich
Nice article.

But what about tracking the status of a download?
...
How can your tell that the file was completely downloaded?
Did the user cancel the download?
Did the user's network connection fail?
If the user canceled the download what is the status of the availablity of the file for checkout by another user?

These are just some of the problems associated with download management that everyone seems to overlook. An article addressing some of these issues with code examples would be a big help.


Well, with basic PHP using a browser interface and using HTML links to download the files you simply cannot determine whether or not anything went wrong. You only know the user clicked a link, and that's it.

If you want more info, you'll have to write your own (client side) download manager and communicate with a script (/webservice) that uses sockets (or something similar) to send the files over. If you do it that way you *can* detect canceled downloads if your download manager sends an ACK on successfully receiving the file (ie. no ACK received within a certain timeframe = download failed/aborted).

Reply With Quote
  #5  
Old March 31st, 2004, 08:57 AM
sam_rich sam_rich is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Texas
Posts: 82 sam_rich User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 40 m 34 sec
Reputation Power: 7
Sockets?

I haven't used sockets before but aren't there socket functions in PHP? Could I use these to write the file manager? I don't mind writing a file manager just to meet my needs, my users would love the feature.

Reply With Quote
  #6  
Old April 1st, 2004, 03:38 AM
neutcomp neutcomp is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: The Netherlands
Posts: 10 neutcomp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to neutcomp
Thumbs up Typo page 2?

Quote:
File Management
I've written two programs to manage this file version. The first uploads the file (file_upload_manager.php), the second displays the file (file_upload_manager.php).


The second file_upload_manager.php is this not the file_display_manager.php?

Good luck
Bjorn

Reply With Quote
  #7  
Old April 1st, 2004, 11:36 AM
wimvds wimvds is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 wimvds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by sam_rich
I haven't used sockets before but aren't there socket functions in PHP? Could I use these to write the file manager? I don't mind writing a file manager just to meet my needs, my users would love the feature.


If you have shared hosting and your hosting provider supports using sockets (not all of them do), then there's no problem on the server-side because PHP does indeed support sockets (URL). You'll still have to take care of the client-side of things though...

Reply With Quote
  #8  
Old April 22nd, 2004, 09:10 AM
sam_rich sam_rich is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Texas
Posts: 82 sam_rich User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 40 m 34 sec
Reputation Power: 7
Where do I begin on the client side? The server is mine and I have full control over the entire system.

Reply With Quote
  #9  
Old April 25th, 2004, 03:18 AM
dejaone dejaone is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 300 dejaone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 7 m 22 sec
Reputation Power: 5
a good article.

Reply With Quote
  #10  
Old August 27th, 2004, 02:21 AM
jrelland jrelland is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 jrelland User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Open file in their application

Good and very useful article.

When you click on a file, you open it in the browser.

How to do for opening in his application (.doc with Winword) ?
In local.

Thank you for advice.

Reply With Quote
  #11  
Old March 22nd, 2005, 04:13 PM
Alexei Koubarev Alexei Koubarev is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Location: Täby, Sweden
Posts: 1 Alexei Koubarev User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 49 sec
Reputation Power: 0
Send a message via MSN to Alexei Koubarev
However i dont really like storing data in the database as this whole data is possible to get from the file itself. plus when you upload a custom file by FTP or something simmilar -- the database is not updated and therefore the file is not accessible... so why use a database?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Article Discussion: File Management with PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |