Hi, I am working on a WP theme with a friend and I'm trying to figure out how to update the files on a regular basis. I will have a server that will be on at certain times (when an update is available) and I want a php file that will update all files in the folder IF it is a younger version. I was thinking of using a text file with the version number. What PHP could I use for this?
leegeorg07
Recommended Answers
Jump to Postyou will probably using cron?
and I think you might be able to get the date (of the file) from the server
and then compare it with the local file.?
Jump to PostIf you need to know how cron works: some info from a random site
To get the date:<?php // outputs e.g. somefile.txt was last modified: December 29 2002 22:16:23. …
All 8 Replies
Kruptein
15
Posting Whiz in Training
leegeorg07
Kruptein
15
Posting Whiz in Training
leegeorg07
almostbob
866
Retired: passive income ROCKS
leegeorg07
leegeorg07
almostbob
866
Retired: passive income ROCKS
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.