Imtehbegginer Posted January 9, 2011 Share Posted January 9, 2011 Hello, I'm developing a script that includes an admincp. I want to know if anyone knows how to make it so when the administrator goes to the update section of the admin cp, it checks the scripts current version and displays the latest version released, then they have an option to install the latest version, using php to release the files needed with a list of files on the update server. Is there any possible way to do this? Quote Link to comment Share on other sites More sharing options...
Imtehbegginer Posted January 9, 2011 Author Share Posted January 9, 2011 28 views and not one reply..... can I atleast know if it's possible? Quote Link to comment Share on other sites More sharing options...
Zurev Posted January 9, 2011 Share Posted January 9, 2011 Well there are a couple of things you could do, simplest way to check version I would think is make a text file on your server. So like http://mainpage.com/version.txt Always include the latest version there, then your actual software installed on other peoples server checks that files contents (file_get_contents) and checks the versions and finds out whether or not there's an update. There's that. As for updating on the fly, It's definitely possible, look at wordpress, you can update to the latest version with a single click. My searches led me to this: http://www.hotscripts.com/forums/php/57131-how-does-wordpress-update.html First post seems to be sort of what you're looking at. All in all I can't give you a step by step as to how it would work because I'm unsure myself, just showing what I found. Quote Link to comment Share on other sites More sharing options...
Imtehbegginer Posted January 9, 2011 Author Share Posted January 9, 2011 Actually that's exactly what I needed, for the version check I was using a current_version.txt file but I couldn't figure out an efficient way to update. I will check out WordPress' update system. Thanks. Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted January 9, 2011 Share Posted January 9, 2011 28 views and not one reply..... can I atleast know if it's possible? http://www.phpfreaks.com/forums/php-coding-help/'can-you-do-*insert-thing*'/ 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.