See my posting I just made about "How do I hide the download link ..."

You'll want to use a similar method with the download.php. You may not have
to check for a session, but you can use the scirpt to keep track of what
file was downloaded, increment it's counter in a database, or send an email,
whatever. then send the header() and file content.

---John Holmes...

----- Original Message -----
To: "php-general" <[EMAIL PROTECTED]>
Sent: Tuesday, June 18, 2002 7:18 AM
Subject: [PHP] Tracking file downloads

> Hi
> I would like to know any ideas on tackling the following:
> I would like to have people give me their details via a form and then
> allow them to download files from the server, and I would also like to
> keep track/record of the files that are downloaded. The record doesn't
> need to be kept, just e-mailed to the admin as soon as it is done and
> the user exits the site.
> I guess this would be the perfect example for using sessions?
> Unfortunately I am not too hot on sessions, so any advise/help will be
> appreciated.
> Thanks
> --
> PHP General Mailing List (
> To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to