multitask, fork(), etc whith PHP-GTK+
[email protected] (paulo henrique castro)
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <[email protected]> |
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