Say that i am a developer and i have some script-updates ready for my friends that use my php scripts. These friends all are hosting their own sites and domains.

Do you guys think it is possible that they only have to push a "check for updates" button sothat this script automatically logs into my site, get the new updates, download these to a directory on their own server and also automatically deletes/rename/move the original scripts with the new updates ?

Is this possible ? it will save me and others a whole lot of work ! does such a script exists already ?

    Sounds feasable.

    If you write it into the script, you would have to have it check for a version number at www.site.com/version.txt and then, if theres a new version, you'll probably need a file to file breakdown of what needs downloading, i.e.

    index.php www.site.com/scripts/index.phps

    so that it knows where it is going, and where it is coming from.

    Also, what if your friends have modified any of the scripts, maybe added any mods? That could become problematic when updating.

    Good luck with it anyway, rofl, and I may even encorporate the idea in my next script 😉

      4 days later

      yep, this can be implemented-

      my advice would be to create a script dedicated to seaching for updates... and not build it into the actual script themselves...

      the so called script would check with you script via ftp if the version number had changed, and using the ftp functions could copy your new scripts over and replace the users scripts in their computers.

      theres nothing really standing in the way.

        Write a Reply...