Re: set_time_limit -VS- database queries

From: "Areski Belaid" <areski5(at)hotmail(dot)com>
To: <pgsql-php(at)postgresql(dot)org>, "Chris" <csmith(at)squiz(dot)net>
Subject: Re: set_time_limit -VS- database queries
Date: 2002-04-10 08:57:31
Message-ID: OE64X4D9JlyB3G494n8000155bb@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

> 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

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Papp, Gyozo 2002-04-10 12:38:18 Re: set_time_limit -VS- database queries
Previous Message Chris 2002-04-09 23:33:50 Re: set_time_limit -VS- database queries