Author Topic: is it possible to create a script updater  (Read 202 times)

mike

  • Guest
is it possible to create a script updater
« on: September 08, 2010, 05:05:48 PM »
Hi does anyone know of a tutorial/guide on how to create a script updater script, so user would click update - system would check version against current version on server if newer it will run an update script.

I hope this makes sense I did try google but nothing related

thanks

M

Smokey PHP

  • Web Developer
  • Expert PHP Helper
  • Senior Member
  • *****
  • Posts: 511
  • Karma: +4/-0
    • View Profile
Re: is it possible to create a script updater
« Reply #1 on: September 09, 2010, 01:59:00 PM »
Hi Mike,

Without knowing what exactly you are after - this is the best I can give you!

PHP Code: [Select]

$fhandle 
fopen("test.php","w+");
$code "<?php echo \"My php file. Last updated: ".date("H:i:s")."\"; ?>";
fwrite($fhandle,$code);
fclose($fhandle);


If you were after something else, what is it exactly you want the script to be able to do?