Re: multitask, fork(), etc whith PHP-GTK+
| From: | Markus Fischer | Date: | Sat, 28 Jul 2001 01:05:31 +0000 |
| Subject: | Re: multitask, fork(), etc whith PHP-GTK+ | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2369@lists.php.net to get a copy of this message | ||
Your english is at least understandable. But not enough to let
anyone solve your problems. Provide the smallest, non-working
example and we'll see.
- Markus
On Fri, Jul 27, 2001 at 01:56:14PM -0300, paulo henrique castro wrote :
> Dears,
>
> I'm trying write a simple PHP-GTK+ e-mail client.. it works like this:
> you fill 3 GtkEntrie (username, password and hostname) and click on
> GtkButton to get messages. Then the program open a POP3 connection with server
> (using imap_open() PHP function) and get the messages. While this I want show
> a small popup to print our status of connection.
>
> Ok, it works, but when I click on GtkButton my program just freeze!!
> And my popup just render (show on my screen) after all works happen!! (after the
> connection do all work)
>
> First I try something like this:
>
> $mybutton->connect("clicked", "show_status_function");
> $mybutton->connect("clicked", "get_messages");
>
> (before this I try just put the instruction "show status popup" before of "get
> messages)
>
> and dont work.
>
> So, I try use many stuffs to make this go correct, but dont work!! I try use
> declare() function of PHP to do this (show my popup or get msgs) on another task
> but dont work. After that I look for documentations about multitasking on PHP and
> found a beta project (named pcntl) that implements fork() function to create another
> pid of the same process on system. Ok, I try it too and dont work!!!
>
> I discovery that the line run (my instruction on PHP-GTK) but the popup
> dont render (show on my screen) and my program freeze!!!!
>
> Someone know what can be happening???
>
> Tnx for any help!!
>
> Best Regards,
>
> Paulo Henrique Castro
>
> PS: I'm sorry about my english.. :P
>
> --
> PHP GTK Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net
> For additional commands, e-mail: php-gtk-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
Markus Fischer, http://guru.josefine.at/~mfischer/
EMail: mfischer@guru.josefine.at
PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0