Re: [PHP-GTK] Reload/restart php-gtk program
[email protected] ("Sebastián Marconi")
| Newsgroups | php.gtk.general |
|---|---|
| Message-ID | <[email protected]> |
I'm reloading my programs using an outside script and choosing an exit
code, for example exit(2):
#Linus
exit=2
while [ $exit -eq "2" ]
do
php $app_dir/run.php
exit=$?
done
#Windows .bat
:restart
%php_dir%/php.exe %app_dir%/run.php
if errorlevel 2 goto restart;
On 8/7/07, Peter Smith <[email protected]> wrote:
>
> I would like to reload and restart a php-gtk program after the program has
> downloaded an updated version of itself. I visualise a dialog informing the
> user that an updated version has been installed and inviting him to click on
> a button to restart with the updated version of the program.
> How would you do this? I have a feeling the answer is painfully obvious but
> I can't see it.
> Peter.
> --
> View this message in context: http://www.nabble.com/Reload-restart-php-gtk-program-tf4232624.html#a12042083
> Sent from the Php - GTK - General mailing list archive at Nabble.com.
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>