is it possible to create a script updater

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

Hi Mike,

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

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

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

Sponsor our Newsletter | Privacy Policy | Terms of Service