LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 09-15-2008, 08:54 PM   #1
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272

Rep: Reputation: 30
php to confirm a file was downloaded from server


Hey all,
Is there a way for the server (Linux ES4), using php to determine if a file was downloaded, and completed?

I am using header information to "push" a file to the user, when he/she clicks download, but I'd like the server to be able to know if the file was successfully downloaded (power failure, internet interruption, etc).

Seems like once I send the header info, thats it.

Any ideas.
Thanks everyone!
 
Old 09-16-2008, 01:17 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
Don't your logs show the transfer size of the file?
 
Old 09-16-2008, 02:34 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,415

Rep: Reputation: 99
the logs are the only source of wisdom here as Mr. C. indicates. If you want to be sure a particular user has downloaded a particular file you may create a temporary directory, move the file there and let that user download the file from there. Name the directory like the sessionid so you may have a distinct proof...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to confirm the file locale. UltraSoul Solaris / OpenSolaris 2 01-16-2007 07:08 PM
Confirm network settings -web server, fc3 Psyche73 Linux - Networking 4 05-21-2005 02:00 PM
[javascript] confirm button on php page Erhnam Programming 1 02-24-2005 01:05 PM
PHP upload file to other server antony_csf Programming 13 02-04-2005 03:11 AM
How to view a downloaded file from Suse Linux7.3 Server on Wins XP LenkaNguyen Linux - General 3 02-25-2002 12:26 PM


All times are GMT -5. The time now is 11:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration