Re: GTk and Snoopy Class
| From: | Malk0 | Date: | Thu, 09 Dec 2004 01:55:47 +0000 |
| Subject: | Re: GTk and Snoopy Class | ||
| References: | 1 2 3 4 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5321@lists.php.net to get a copy of this message | ||
hi,
it's 'normal' that it freaze cause opening a distant file take a certain time.
If you only want to refresh the GUI you can use something like this
while(gtk::events_pending()) gtk::main_iteration();
but if you want to totally keep the control of your app a good way to
check out is to launch another script to get and parse the page and
only check for the result of this new process in the main apps this
way your app won't freeze and you eventually can do another job with
it
hope that help
regards
nathan
On Wed, 8 Dec 2004 22:08:35 -0300, Francisco Obarrio
<obarriof@fibertel.com.ar> wrote:
> Ok .. here is the problem.. if i want to look for 10 web pages.. php gtk
> FREEZE... is there any way to not to ?
> thanks!
> Fran
>
>
>
>
> ----- Original Message -----
> From: "Francisco Obarrio" <obarriof@fibertel.com.ar>
> To: <php-gtk-general@lists.php.net>
> Sent: Wednesday, December 08, 2004 8:15 PM
> Subject: Re: [PHP-GTK] GTk and Snoopy Class
>
> > Colin:
> > yes i will use fopen. like this:
> >
> > $handle =
> > fopen("http://gtk.php.net/manual/en/gtk.gtklabel.php",
> > "rb");
> > $contents = '';
> > while (!feof($handle)) {
> > $contents .= fread($handle, 8192);
> > }
> > fclose($handle);
> >
> > because i cannot use the class snoopy.
> > Thanks anyway !
> > Fran
> >
> >
> >
> > ----- Original Message -----
> > From: <colinm@clientsecure.net>
> > To: "Francisco Obarrio" <obarriof@fibertel.com.ar>
> > Sent: Wednesday, December 08, 2004 7:08 PM
> > Subject: Re: [PHP-GTK] GTk and Snoopy Class
> >
> >
> >> file(),fopen(),
> >> what do you mean "need to look to the html code of a web page"
> >>
> >> _
> >> (o> Colin McLeod
> >> / /\ ClientSecure, Inc.
> >> V_/_
> >>
> >>
> >> Francisco Obarrio wrote:
> >>> Hello .. this is my first message to the list.
> >>>
> >>> I'm coding an application and i need to look to the html code of a web
> >>> page..
> >>> with php i use the class snoopy.
> >>> but in php-gtk i cannot make it work..
> >>> any ideas ?
> >>>
> >>> Thanks.
> >>> Francisco
> >>>
> >
> > --
> > 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
>
>
--
-- Malk0 --
venez discuter php-gtk en francais ici http://mk0phpgtk.xgarreau.org