You are here: Re: Asynchronous function call? « PHP Programming Language « IT news, forums, messages
Re: Asynchronous function call?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация