aggrav8d Posted July 29, 2009 Share Posted July 29, 2009 Hi, phpfreaks. I'm looking for a nice way to automatically update copies of my CMS as they become available. I see a lot of CMS leave it in the hands of the maintainer - from checking for updates all the way to patching the system. Is this really the best way? Surely there's a method that can simplify this for everyone. Please give me the benefit of your experience. Quote Link to comment https://forums.phpfreaks.com/topic/168030-php-cms-automatic-updates/ Share on other sites More sharing options...
gevans Posted July 29, 2009 Share Posted July 29, 2009 I used to use a forum software that would advice you when new releases were available. In the admin area there was some script that would pull details from the domain that promoted the software checking the current version with the working version. They could then download new updates from there. The updates would still need to be uploaded and an update script run. Quote Link to comment https://forums.phpfreaks.com/topic/168030-php-cms-automatic-updates/#findComment-886254 Share on other sites More sharing options...
aggrav8d Posted July 29, 2009 Author Share Posted July 29, 2009 Any idea what system they used to poll the promoting site? most file*() commands are right out and I can't count on curl to be available. Quote Link to comment https://forums.phpfreaks.com/topic/168030-php-cms-automatic-updates/#findComment-886280 Share on other sites More sharing options...
gevans Posted July 29, 2009 Share Posted July 29, 2009 I'll see if I have an old version lying around and have a look... ...here we go $currversion = explode("|", @file_get_contents("http://www.flexbb.net/public/currentversion.txt")); That's the line that did it for them Quote Link to comment https://forums.phpfreaks.com/topic/168030-php-cms-automatic-updates/#findComment-886288 Share on other sites More sharing options...
Philip Posted July 30, 2009 Share Posted July 30, 2009 SMF (the board used at PHP Freaks) will let you know when you need to update, but it won't automatically update. However - their update script is pretty awesome (when visiting their download page check out the large upgrade) Quote Link to comment https://forums.phpfreaks.com/topic/168030-php-cms-automatic-updates/#findComment-886557 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.