pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Bax <fbax@sympatico.ca>
To: pgsql-php@postgresql.org
Subject: Re: Exceeding 300 second timeout?
Date: Wed, 16 Apr 2003 11:03:29 -0400
Message-ID: <5.2.0.9.0.20030416105915.00a0a900@pop6.sympatico.ca> (raw)
In-Reply-To: <HNEKIGDMMIODOHIMFPGJIEIMCGAA.richg@mav-mail.com>

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  




view thread (2+ messages)

Message-ID: <5.2.0.9.0.20030416105915.00a0a900@pop6.sympatico.ca>
Permalink:  ../5.2.0.9.0.20030416105915.00a0a900@pop6.sympatico.ca/
Also on:    postgresql.org/message-id/5.2.0.9.0.20030416105915.00a0a900@pop6.sympatico.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: fbax@sympatico.ca
  Subject: Re: Exceeding 300 second timeout?
  In-Reply-To: <5.2.0.9.0.20030416105915.00a0a900@pop6.sympatico.ca>
  References: <HNEKIGDMMIODOHIMFPGJIEIMCGAA.richg@mav-mail.com> <5.2.0.9.0.20030416105915.00a0a900@pop6.sympatico.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox