Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 09-15-2008, 09:54 PM   #1
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, 02: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, 03:34 AM   #3
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,507

Rep: Reputation: 128Reputation: 128
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...


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 08:08 PM
Confirm network settings -web server, fc3 Psyche73 Linux - Networking 4 05-21-2005 03:00 PM
[javascript] confirm button on php page Erhnam Programming 1 02-24-2005 02:05 PM
PHP upload file to other server antony_csf Programming 13 02-04-2005 04:11 AM
How to view a downloaded file from Suse Linux7.3 Server on Wins XP LenkaNguyen Linux - General 3 02-25-2002 01:26 PM

All times are GMT -5. The time now is 06:59 PM.

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