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 Posthttp://www.daniweb.com/forums/post785006.html#post785006
I used to think, Now I just cut n paste
Jump to PostI dunno, havent thought about that
My version downloads a zip file of the new script using a force download script that the user then unzips over the top of their existing folders
combining the two scripts given already$version=file_get_contents('current_version.txt'); $d=date("D"); if($d === "Tue") { echo 'checking …
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.