You are here: Re: [PHP] running process in the background « PHP « IT news, forums, messages
Re: [PHP] running process in the background

Posted by Jordan Miller on 10/20/56 11:25

Oh wait... you are not specifying your $_POST variable. you need to
use the key for $_POST. just do a print_r($_POST) to find the key
from the $_POST array that you are looking for. also, i would not
pass a $_POST variable directly to your shell without escaping it
somehow, first...

foreach ($_POST[$key] ...

Jordan


> Did you try also sending stderr to /dev/null rather than stdout only?
>
> I think the syntax is to add a "2>&1":
> foreach ($_POST as $kid){
> `php run.php param1 param2 > /dev/null 2>&1 &`;
> }
>
> This should put each process in the background and suppress all
> errors and output. Does that work?
>
> Jordan
>
>
>
> On Aug 31, 2005, at 11:44 AM, Georgi Ivanov wrote:
>
>
>> foreach ($_POST as $kid){
>> `php run.php param1 param2 > /dev/null &`;
>> }
>>
>
>

 

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

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