Jump to content

Recommended Posts

we  are looking for a simple  piece of code  that will send us an email  whenever anyone
accesses a particular  directory  on the server.  we have a bunch of files that people will  download
by browser access.  There is no index file in the directory.  we could write an index.php  file
that would  send an email  on  access, but on script termination, we want the  file directory
to  show up so people can download. 
Jennifer 
Link to comment
https://forums.phpfreaks.com/topic/21781-access-control/
Share on other sites

Write a script which lists the files that can be downloaded and make each filename a link to a download script.

In the download script, send the email and download the file.
eg
[code]
<a href='download.php?file=file1'> File 1 </a>
<a href='download.php?file=file2'> File 2 </a>[/code]
Link to comment
https://forums.phpfreaks.com/topic/21781-access-control/#findComment-97317
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.