KI114 Posted May 18, 2008 Share Posted May 18, 2008 Hi, I'm making a PHP/mySQL driven website builder and I need it to be able to update by clicking on a button on the site admin panel which is a webpage. The updater will need to check whether the files on the users site are not as current on my server and then download the updated files and overwrite on their site. Is this possible? Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/106114-php-updater/ Share on other sites More sharing options...
947740 Posted May 18, 2008 Share Posted May 18, 2008 Yes. Use filemtime() to check the last modified time of the files. filemtime() returns a timestamp. As far as overwriting files, you could open both files, copy the content from one to the other and save them both. I am not sure if there is an easier way to do that. Link to comment https://forums.phpfreaks.com/topic/106114-php-updater/#findComment-543931 Share on other sites More sharing options...
KI114 Posted May 18, 2008 Author Share Posted May 18, 2008 Great! Thanks. Now to do the code... Link to comment https://forums.phpfreaks.com/topic/106114-php-updater/#findComment-544108 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.