ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-gtk-general
php-gtk-general
Re: [PHP-GTK] Reload/restart php-gtk program
by sebastianmarconi other posts by this author
Aug 12 2007 11:54AM messages near this date
[PHP-GTK] Reload/restart php-gtk program | Re: [PHP-GTK] Reload/restart php-gtk program
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 <smithpdo@[...].com>  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-tf42326
24.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
> 
> 

-- 
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Peter Smith
sebastianmarconi
Adrian Snyman
Marc Quinton
Elizabeth Smith
Bob Majdak Jr
Peter Smith
Bernard Fouche
Bob Majdak Jr
Bernard Fouche

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved