Received: from hotmail.com (oe64.law4.hotmail.com [216.33.148.160]) by postgresql.org (Postfix) with ESMTP id E56CA475D35 for ; Wed, 10 Apr 2002 04:57:31 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 10 Apr 2002 01:57:33 -0700 X-Originating-IP: [212.9.66.13] From: "Areski Belaid" To: , "Chris" References: <007801c1dfab$9070d580$01fdfea9@jaguar> <5.1.0.14.0.20020410093150.02622a70@cooee.cybersydney.com.au> Subject: Re: set_time_limit -VS- database queries Date: Wed, 10 Apr 2002 10:57:31 +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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 10 Apr 2002 08:57:33.0201 (UTC) FILETIME=[C0B1A810:01C1E06D] X-Archive-Number: 200204/27 X-Sequence-Number: 1051 > Hi, > > >I do a lot of database queries with php... > >to import a lot of field in the database... > > > >In the first time, i put the set_time_limit(0) > >But the execution of the script such as system calls using system(), > >the sleep() function, database queries, etc. is not included when > >determining the maximum time that the script has been running. > > > >So, of course, Ii can't put my script on background... > > What do you mean put it in the background ? Launch a script with exec() or system()... > > >but I want known how many field has been inserted (hai)... > > It depends on how you're inserting (or updating) them. > > If you're using some sort of loop to do it, you can add another variable in > to automatically increment when you do an update or insert. I have a double key on a table and some insert can be failed and I want known how many is really inserted... I can always know that with the last id (oid)... Thus,I just want know if there are a way to execute a script without timeout when I do some database query... Thanks a lot, Areski (qui rit) -> http://www.areski.be.tf