johnwayne77 Posted March 10, 2008 Share Posted March 10, 2008 Do you have any idea how can I auto update/modify files on my server at specified time with different text? I mean I wanna have files like: file1.php, file2.php, file3.php auto modifying the modify date at certain intervals. Thanks. Link to comment https://forums.phpfreaks.com/topic/95430-auto-updatemodify-files/ Share on other sites More sharing options...
DyslexicDog Posted March 10, 2008 Share Posted March 10, 2008 You would need to schedule something on the server like a cron job that calls your update script. The other way to do this is to have a computer access the script that does the updating. The remote machine would need to have a scheduled/cron job. Link to comment https://forums.phpfreaks.com/topic/95430-auto-updatemodify-files/#findComment-488576 Share on other sites More sharing options...
ikmyer Posted March 10, 2008 Share Posted March 10, 2008 if you want the change the modify date of the actual file you might have to look at some type of cron job, unless you wanted this to happen only when the page loads... Something like "touch file1.php" should update the modify date to the current date/time on the file system from the command line or from a cron job Link to comment https://forums.phpfreaks.com/topic/95430-auto-updatemodify-files/#findComment-488578 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.