X-Original-To: pgsql-php@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3644F476311 for ; Sun, 20 Apr 2003 05:45:07 -0400 (EDT) Received: from jive.SoftHome.net (jive.SoftHome.net [66.54.152.27]) by postgresql.org (Postfix) with SMTP id 1A6FC47580B for ; Sun, 20 Apr 2003 05:44:59 -0400 (EDT) Received: (qmail 25913 invoked by uid 417); 20 Apr 2003 09:45:01 -0000 Received: from shunt-smtp-out-0 (HELO softhome.net) (172.16.3.12) by shunt-smtp-out-0 with SMTP; 20 Apr 2003 09:45:01 -0000 Received: from supercable ([217.217.107.80]) (AUTH: LOGIN adriantineo@softhome.net) by softhome.net with esmtp; Sun, 20 Apr 2003 03:44:40 -0600 Message-ID: <001d01c30721$b1fbf2e0$506bd9d9@supercable.es> From: "Adrian Tineo" To: "Damien M." , pgsql-php@postgresql.org References: <20030420015752.13202.qmail@abelia-decors.com> Subject: Re: resources limit php -> postgre Date: Sun, 20 Apr 2003 11:45:56 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Status: No, hits=-12.8 required=5.0 tests=BAYES_20,QUOTED_EMAIL_TEXT,REFERENCES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/20 X-Sequence-Number: 1990 > Is there a way to define a 'per script' limit on php/PG, or anything > else in order to avoid these problems ? You can set a maximum time for execution. This is set for every script in php.ini with max_execution_time (default is 30 seconds). You can re-define your ini value though using ini_set("max_execution_time",$max_time) in every script that has special needs. You can check http://www.php.net/manual/en/function.ini-set.php for more info on ini_set and setting values. Adrian Tineo