Re: Multi-threading in PHP
| From: | Markus Fischer | Date: | Sat, 11 Aug 2001 14:42:58 +0000 |
| Subject: | Re: Multi-threading in PHP | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2788@lists.php.net to get a copy of this message | ||
No multithreading in PHP.
But for PHP-GTK, you can use the timeout_add() functions or even
the PHP builtin register_tick_function() ( it that was the name)
- Markus
On Sat, Aug 11, 2001 at 02:50:48PM +0200, Sander Roobol wrote :
> Is it possible to create multi-threaded applications using PHP?
> I know that this is not a specific PHP-GTK question, but I think it's only
> usefull in stand-alone applications.
>
> What I want sounds simple: I want to download multiple files via HTTP (using
> fsockopen, fgets, fputs, etc) while the GUI keeps responding to userinput
> (ie., to cancel one of the downloads).
>
> A possibility is to create multiple instances of a php-script (using exec or
> something), but I can't think of a good way to communicate between the
> instances. I don't want to use a database (most client-computers don't have
> MySQL running), and using files to communicate seems to slow because you
> need to check for changes every second or so.
>
> Any ideas?
>
> Thanks in advance,
>
> Sander
>
>
> --
> 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