Re: Exceeding 300 second timeout? - Mailing list pgsql-php

From Frank Bax
Subject Re: Exceeding 300 second timeout?
Date
Msg-id 5.2.0.9.0.20030416105915.00a0a900@pop6.sympatico.ca
Whole thread Raw
In response to Exceeding 300 second timeout?  ("Rich Garabedian" <richg@mav-mail.com>)
List 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


pgsql-php by date:

Previous
From: "Rich Garabedian"
Date:
Subject: Exceeding 300 second timeout?
Next
From: "Bernd Hoffmann"
Date:
Subject: session_pgsql-0.6.1