How to determine whether a file downloaded or NOT?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
pjcvijay
Forum Commoner
Posts: 25
Joined: Tue Sep 09, 2008 6:12 am

How to determine whether a file downloaded or NOT?

Post by pjcvijay »

Hi All,

I created a page in php with button "Download", if you click on it, will download a doc. file. I want the application to notify me when download completes using php or Javascript or Ajax, etc.,

Can anyone have idea? Please help me to solve this

Thanks in advance,
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: How to determine whether a file downloaded or NOT?

Post by AbraCadaver »

At the end of the script that sends the download, use the mail() function to send you an email.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply