Re: Question about executing PHP script
| From: | Charlie Don | Date: | Tue, 29 Jun 2004 00:59:11 +0000 |
| Subject: | Re: Question about executing PHP script | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-189202@lists.php.net to get a copy of this message | ||
Hi Elijah,
I think you understood what I have asked. Thanks.
to run a script at the command shell I do:
php -q script.php
So all I need is to have set_time_limit(0); on the main body of the script to by pass php.ini?
However, I would like to hardcode the php -q just like in perl where you have
a #!/usr/bin/perl -w
can I do a #!/usr/bin/php -q at the begining of the text file?
Thanks.
From: Elijah Gallatin <elijahg@gmail.com> To: Charlie Don <cf_linux@hotmail.com> Subject: Re: [PHP] Question about executing PHP script Date: Mon, 28 Jun 2004 19:33:14 -0400 On Mon, 28 Jun 2004 23:29:16 +0000, Charlie Don <cf_linux@hotmail.com> wrote: Hello, I need to have some scripts that do database maintanance on my cron tab. However, some might take more time to execute that the maxtime set on php.ini. These are now web scripts but scripts that I execute on my command prompt or cron tab. I wonder if there is any way to have on the first line of the script that calls the php engine an option that does not end the script if it exceeds the maximum executin time. Thanks, C. _________________________________________________________________ Make the most of your family vacation with tips from the MSN Family Travel Guide! http://dollar.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php set_time_limit(0); if php is running in safe mode that will have no effect_________________________________________________________________ Make the most of your family vacation with tips from the MSN Family Travel Guide! http://dollar.msn.com