Re: Help withPHP-gtk

From: Date: Fri, 27 Apr 2001 20:28:16 +0000
Subject: Re: Help withPHP-gtk
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1546@lists.php.net to get a copy of this message
On Fri, 27 Apr 2001, Mike Elliott wrote: > Excellent program. Thanks a bunch guys. I am a newbie to PHP-GTK and most > programming. > > I am wondering about something. > > 2) What would be the best way to automatically update items in a clist from > a database at a specified interval? In php on the web I simply use a > meta-refresh tag. Set a timeout: function update_clist($clist) { // do processing // return true to keep timeout active // return false to stop timeout } // set up $clist here // Do it every minute = 60 * 1000 milliseconds gtk::timeout_add(60000, 'update_clist', $clist); -Andrei "Everything should be made as simple as possible, but not simpler." -- Albert Einstein

« previous php.gtk (#1546) next »