RE : [PHP] Start php-script with exec()?
| From: | BENARD Jean-philippe | Date: | Tue, 23 Sep 2003 08:13:46 +0000 |
| Subject: | RE : [PHP] Start php-script with exec()? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163553@lists.php.net to get a copy of this message | ||
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
(jean-philippe.benard-renexter@renault.com)
-----Message d'origine-----
De : Victor Spång Arthursson [mailto:scooterbabe@home.se]
Envoyé : lundi 22 septembre 2003 14:16
À : php-general@lists.php.net
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