Re: [PHP-GTK] multitask, fork(), etc whith PHP-GTK+
[email protected] (Markus Fischer)
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <[email protected]> |
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: [email protected]
> For additional commands, e-mail: [email protected]
> To contact the list administrators, e-mail: [email protected]
>
--
Markus Fischer, http://guru.josefine.at/~mfischer/
EMail: [email protected]
PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0