Jump to content

Archived

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

natalieG

access control

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 

Share this post


Link to post
Share on other sites
this forum is for helping you debug your own code.  If you are looking for someone to write some code for you, please make a thread in the freelance forum (read the rules first). If you are looking for a prefab script, please make use of www.google.com.

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

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.