From: | Frank Bax <fbax(at)sympatico(dot)ca> |
---|---|
To: | <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: Exceeding 300 second timeout? |
Date: | 2003-04-16 15:03:29 |
Message-ID: | 5.2.0.9.0.20030416105915.00a0a900@pop6.sympatico.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
At 09:57 AM 4/16/03, Rich Garabedian wrote:
>Running into an interesting problem where a time-intensive, php command line
>script times-out occasionally. This particular script can sometimes take
>over and hour to complete and it does a ton of interaction with our
>postgreSQL database. The exact error message is the following:
>
> Fatal error: Maximum execution time of 300 seconds exceeded in
> dbbind.php
>on line 17
>
>Line 17 of dbbind.php looks like this:
>
> $t=pg_fieldtype($rs,$col);
>
>I was under the impression that cli php has no timeout, so I'm assuming this
>is something with postgreSQL.
It is a php limit (although docs indicate it is 30, not 300), but can be
changed within your script:
http://www.php.net/manual/en/function.set-time-limit.php
FYI: If you were running a long php script under apache, there is also an
apache limit.
Frank
From | Date | Subject | |
---|---|---|---|
Next Message | Bernd Hoffmann | 2003-04-18 19:15:40 | session_pgsql-0.6.1 |
Previous Message | Rich Garabedian | 2003-04-16 13:57:21 | Exceeding 300 second timeout? |