|
Posted by Fabio on 08/12/07 16:55
"ELINTPimp" <smsiebe@gmail.com> ha scritto nel messaggio
news:1186923077.968478.215140@d55g2000hsg.googlegroups.com...
> Sorry about my short message yesterday, I was running out the door.
No problems, it happens ;)
>
> This article seems pretty straight forward:
>
> http://www.webforumz.com/php-forum/12595-multithreaded-php.htm
>
I found something similar that uses open_proc() instead of popen() (from php
manual I think there is no big differences)
http://www.alternateinterior.com/2007/05/benchmarking-php-threads.html
but there are some questions in all the situation:
- when I launch a process I need always to close it with
pclose()/close_proc()?
And how can I know when I must close it if I lounch the process in
background???
The process don't close itself when it finishes?
- I can pass the parameter to the process in something as
$process = popen("/usr/local/bin/php ". $php_script_file . " " .
$parameter, "r");
Ok, but for a mail the parameter can be large!
email address, subject, body... can I pass it in this way???
Or there is a smarter way?
- In the example there is the path of the php ("/usr/local/bin/php").
But php may stay in another directory... Can I know where it is?
I thank you again!
Navigation:
[Reply to this message]
|