You are here: Re: running an exec in the background, let page go on. « All PHP « IT news, forums, messages
Re: running an exec in the background, let page go on.

Posted by Andy Jeffries on 04/28/06 11:08

On Fri, 28 Apr 2006 08:07:13 +0000, Andy Jeffries wrote:

> On Thu, 27 Apr 2006 09:33:08 -0700, Sjoerd wrote:
>>> exec("/var/www/html/services/ftp.sh $zipfile 2>&1 &", $output2,
>>> $status);
>> Why doesn't this work?
>
> Because the stdout handle will still point to the handle the Apache/PHP
> module is listening/blocking for input on.
>
> I posted more about this in my recent thread:

Sorry, wrong thread in the earlier message, I meant this one:

Daemonising to continue asynchronously
http://nextgen.url123.com/asyncphp
(Google groups, blah, blah).

Cheers,


Andy


--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

 

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

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