Hi All,
I need to delete a file from the server after 20 mits. of it's created time. I need to know how to do it both on the Windows NT as well as on Linux. It would be greatfull if you reply me ASAP.
Kamal
Run a php script from the crontab (or AT on windows) and use "stat()" or some other filesystem function to get the data for the file.
http://www.php.net/manual/en/ref.filesystem.php http://www.php.net/manual/en/function.stat.php
use that info to decide which files to remove, and remove them.
Note: Be carefull about where you look for the files to delete. many of your os's files are older than 20 minutes!
Hi,
It works. Thanks for your help.