Reply to exec() in the background

Your name:

Reply:


Posted by MS on 02/13/06 17:30

In the admin section of my site, I want to be able to run a script which
will thumbnail thousands of images.

Obviously this will take a little while, so I was wanting to initiate the
script and have it run in the background so I don't have to wait for it to
finish.

I have looked at exec() at php.net

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);

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

Note: If you start a program using this function and want to leave it
running in the background, you have to make sure that the output of that
program is redirected to a file or some other output stream or else PHP will
hang until the execution of the program ends.

ps. I dont require any returned data !!
Any examples would be great !!

Thnx

--
----------------------------------------------------------------------------
http://www.myclubweb.co.uk - The Home of Club Websites
----------------------------------------------------------------------------

[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

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