Maybe you'll need to add " >/dev/null &" at the end of your execution
command. Adding this will put your script to background and php wouldn't
wait for this script end before terminate http process (=> no browser
timeout).

For example : exec("/logiciel/php/bin/php /tmp/toto.php >/dev/null &");

Cordialement,
Jean-Philippe BENARD
Consultant STERIA Infogérance
([EMAIL PROTECTED])

-----Message d'origine-----
De : Victor Spång Arthursson [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 22 septembre 2003 14:16
À : [EMAIL PROTECTED]
Objet : [PHP] Start php-script with exec()?

Is it possible?

I have a file that takes 5 minutes to run, and I would like to be able 
to start it when loading a page. But I can't include it because it 
forces the browser to timeout…

exec("script.php") doesn't seem to work…

Sincerely

Victor
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to