Mailinglisten-Archive |
> > hat irgendwas mit "multithreading" zu tun, aber so ganz raff ich das
noch
> > nicht, man bräuchte mehr beispiele ...
>
> Hat in meinem Test nur den normalen Scriptverlauf für den Tick
unterbrochen...
>
> Also
>
> normalprogramm
> normalprogramm
> tick
> normalprogramm
>
> und nicht
> normalprogramm
> normalprogramm tick (<-- Das soll Parallelität darstellen)
> normalprogramm
ah, das tick programm alle n ticks aufgerufen,
deshalb auch die schleife im manual besipiel beim declare ...
somit dürfte es klar, dass wenn der tick beim 2. aufruf aufgerufen
wird, und sich darin ein fopen() befindet wird auch dieses warten
bis es fertig ist mir der URL ... also wieder pech ...
und fork() prozesse kann man noch nicht mit php erstellen ????
###########################################
http://www.php.net/manual/en/ref.exec.php
naken_(at)_i1.net
01-Dec-1999 10:32
For anyone interested in execing in the background I figured out how to do
it. I wrote a
small C program (You can see it at http://www.naken.cc/mikehup.php) that
forks a process and closes off STDIN,STDOUT,STDERR).. then all you do is
call exec with: exec("/path/to/mikehup whatever &"); and PHP will come back
and your process will run in the background :) this is the only way i've
been able to do it...
#############################################
kiri
________________
8307 305 165 1781
php::bar PHP Wiki - Listenarchive