* Thus wrote Craig Lonsbury ([EMAIL PROTECTED]): > Hi All, > I have a script that takes a directory of user uploaded files > and resizes them to the required sizes. I was given ~750 test > pix to run through, and my solution only sorta works. The problem > is that it won't get through the whole batch without dying. It > will process anywhere between 13 to 350 pix in one go before > stoping, and it takes 3 or 4 tries to get it restarted. > > I have set_time_limit(0); in the code, so it isn't timing out. > I can't even think what else it could be, so any help is > greatly appreciated.
Apache has a timeout also (assuming your using apache). Also ensure that your set_time_limit is actually working, like say you have safe_mode on, that call wont do anything. Another thing you can do, if you don't care if the user sees the output but want to ensure that the script continues, is to use ignore_user_abort(). That will leave the php script to run its full length even if the connection between the server and client drop out. Curt -- List Stats: http://zirzow.dyndns.org/html/mlists/php_general/ "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php