LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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: 274

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: 63
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, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration