natalieG Posted September 23, 2006 Share Posted September 23, 2006 we are looking for a simple piece of code that will send us an email whenever anyoneaccesses a particular directory on the server. we have a bunch of files that people will downloadby browser access. There is no index file in the directory. we could write an index.php filethat would send an email on access, but on script termination, we want the file directoryto show up so people can download. Jennifer Link to comment https://forums.phpfreaks.com/topic/21781-access-control/ Share on other sites More sharing options...
.josh Posted September 23, 2006 Share Posted September 23, 2006 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. Link to comment https://forums.phpfreaks.com/topic/21781-access-control/#findComment-97315 Share on other sites More sharing options...
Barand Posted September 23, 2006 Share Posted September 23, 2006 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 More sharing options...
Recommended Posts