Reply to Re: exec() in the background

Your name:

Reply:


Posted by J.O. Aho on 02/13/06 18:04

MS wrote:

> Am I looking at the correct command? or is there a better one?
>
> and what would be the correct format for this function?
>
> exec(thumb.php);

exec('php /path/to/thumb.php');

This won't run the process in background, but php will wait for the result.

You could try with

shell_exec('php /path/to/thumb.php &');

but not sure it will detach the the process from the php thread.


> how do I force returned data to a file? as per note on php.net

I would suggest you let the thumb.php handle the output to the file itself,
for files, take a look at http://www.php.net/manual/en/function.file.php



//Aho

[Back to original 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

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