Jump to content

Install updates on client system


gr8abbasi

Recommended Posts

Hi,

 

I want to install updates on the client system if any updates are available on the central server. So Please can anyone help me in retrieving the directories and files on central server, so that i can compare them with the clients version and if files on central server are updated then update the client files too.....

 

So what will be the best solution for it?

 

 

Thanks in advance

Link to comment
Share on other sites

I want to install updates on the client system if any updates are available on the central server. So Please can anyone help me in retrieving the directories and files on central server, so that i can compare them with the clients version and if files on central server are updated then update the client files too.....

 

Use Subversion it will tell you exactly which files are updated since the last checkout.

Link to comment
Share on other sites

the only way you can do is

have a  file version file in both client sever, and central server

have the client (your visitors, the admin), load the current server's file version

have a iframe to load central server's version

in the iframe, use parent.document.getElementById("version")==document.getElementById("serverversion")

Link to comment
Share on other sites

the only way you can do is

have a  file version file in both client sever, and central server

have the client (your visitors, the admin), load the current server's file version

have a iframe to load central server's version

in the iframe, use parent.document.getElementById("version")==document.getElementById("serverversion")

 

I doubt he will be able to write his own version control system using something like Subversion is really his best option as all he'll have to do is:

 

cd /path/to/web/root/

svn update

 

You can use hooks but I do not recommend it as you don't want an unstable copy on the production server.

Link to comment
Share on other sites

Thanks for your replies.

 

please can you tell me that how wordpress work for its updates. For example when we install the wordpress and if the updates are available then it show the link and process accordingly...

 

Can you explain me how does it works for wordpress ? because i also want the similar functionality.

if so plz provide me some  example.

 

 

thanks

Link to comment
Share on other sites

PHP execute server side so no, your solution need to execute on the client.

I think he means a web-app which can update on a single click or maybe auto-update using cron.

 

@OP:

You can create a php file on central server which simply echoes (or displays xml) latest version of software available.

You can then use curl to download the archive on to client server, use zip libraries to extract the files and redirect the client-browser to upgrade.php or something.

Link to comment
Share on other sites

@OP:

You can create a php file on central server which simply echoes (or displays xml) latest version of software available.

You can then use curl to download the archive on to client server, use zip libraries to extract the files and redirect the client-browser to upgrade.php or something.

 

I couldn't have said it better myself ;)

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.