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]
|