http://www.php.net/manual/en/function.set-time-limit.php

the set_time_limit allows you to reset the max execution time..

the manual says:

When called, set_time_limit() restarts the timeout counter from zero. In
other words, if the timeout is the default 30 seconds, and 25 seconds into
script execution a call such as set_time_limit(20) is made, the script will
run for a total of 45 seconds before timing out.

Wagner Tomy
Editus S.A.

----- Original Message -----
From: "Pétur Björn Thorsteinsson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 2:03 PM
Subject: [PHP] execution time


>
> I have a slight problem and was wondering if anyone could help.
>
> I have a php script that runs every 30 minutes. It takes the contents of a
> directory (which is constantly being updated) and dumps them into a mysql
> database. Recently this directory has become increasingly large and the
php
> script only updates a portion of it before it stops execution.
>
> To run the php script I use a lynx command in a crontab. I'm running suse
> linux and apache on both machines (the machine containting the directory
> and the other machine containing the database).
>
> I've tried changing the max execution time in php.ini file but it appears
> to have no affect. When I took the php script and divided it into portions
> and ran them one at a time it worked (except for one portion of the
> script). the execution time of the script doesn't matter to me, I just
need
> it to run.
>
> When I run the php script through a browser, and the script doesn't
> complete, I get a 'page cannot be displayed' message (while I am expecting
> a 'fatal error, exceeded max execution time' error message).
>
> Maybe it could be fixed by using something other than lynx to run the php
> script internally, but  I don't know of any alternatives.
>
> hope someone can help..
>
>
> -petur
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to