Jump to content

download option


sugan

Recommended Posts

In my php program, when user clicks, the download link file will be downloaded.But i need to add a record to the database after download has completed.How do i know by the php program whether download is completed.How can i check this?For exampleWhen i click download link, a dialog box appears, whether to Open, Save or Cancel.When i click 'Cancel' the database should not be updated.Please help me to solve this.Regards,Sugan

Link to comment
Share on other sites

Thats a bit out of the reach of PHP. in order for this to work PHP would need to be able to access information from the computer/browser, which PHP is not able to do because its server-side. Don't believe javascript has access to the download logs either. The only way i can see this working is if your PHP page forces the download itself and increments the db anyway. Unless there's some secret to this that even I'm not aware of, what you're asking simply isn't possible.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...