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. Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.