From: Areski Belaid <areski5@hotmail.com>
To: pgsql-php@postgresql.org
To: Chris <csmith@squiz.net>
Subject: Re: set_time_limit -VS- database queries
Date: Wed, 10 Apr 2002 10:57:31 +0200
Message-ID: <OE64X4D9JlyB3G494n8000155bb@hotmail.com> (raw)
References: <007801c1dfab$9070d580$01fdfea9@jaguar>
<5.1.0.14.0.20020410093150.02622a70@cooee.cybersydney.com.au>
> 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
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: areski5@hotmail.com, csmith@squiz.net
Subject: Re: set_time_limit -VS- database queries
In-Reply-To: <OE64X4D9JlyB3G494n8000155bb@hotmail.com>
References: <007801c1dfab$9070d580$01fdfea9@jaguar> <5.1.0.14.0.20020410093150.02622a70@cooee.cybersydney.com.au> <OE64X4D9JlyB3G494n8000155bb@hotmail.com>
* 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