Using PHP to update file after a new copy is uploaded

kayote

New Member
So I'm trying to see if something like this is possible WITHOUT using database.[*]A file is uploaded to the server /files/file1.html[*]PHP is tracking the upload time by checking last update time in database[*]If the file (file1.html) has been updated since the last DB time, PHP makes changes; Otherwise, no changes are madeBasically, for a text simulation game (basketball), it outputs HTML files for rosters/stats/standings/etc. and I'd like to be able to insert each team's Logo at the top (which the outputted files don't do). Obviously, it would need to be done often as the outputted files are uploaded to the server daily. I don't want to have to go through each team's roster manually inserting images at the top.Don't have an example as the league hasn't started.I've been thinking of just creating a button on the league's website (not created yet) that when pushed would update the pages, but I'm hoping to have PHP do it by itself.
 
Back
Top