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 <[EMAIL PROTECTED]> To: Charlie Don <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php