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