I have 2 departments. One that requests files from another location in the city (archives). When archives receives these requests they scan the documents to a shared network directory. Then they email the staff to notify them that their request is scanned and ready for viewing.
Well I am developing an intranet to handles these requests.
My staff scans files to a shared network directory.
What I'm stuck on is this:
My goal is to when the files are scanned to have PHP scan the directory and create hyper links to each file, store that link in the database so I can use it elsewhere later.
I know how to scan the directory via a script.
What I don't know is how to trigger the script to run everytime a new file is copied into that directory. Generating the links in real-time.
Can anyone help me?
How would you accomplish this?
Well I am developing an intranet to handles these requests.
My staff scans files to a shared network directory.
What I'm stuck on is this:
My goal is to when the files are scanned to have PHP scan the directory and create hyper links to each file, store that link in the database so I can use it elsewhere later.
I know how to scan the directory via a script.
What I don't know is how to trigger the script to run everytime a new file is copied into that directory. Generating the links in real-time.
Can anyone help me?
How would you accomplish this?