Jump to content

Callback script


Imtehbegginer

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.