Re: very strange behavior.... incomplete query performed

From: Date: Sun, 12 Aug 2007 12:40:52 +0000
Subject: Re: very strange behavior.... incomplete query performed
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-260734@lists.php.net to get a copy of this message
Tijnema wrote:
On 8/12/07, Alain Roger <raf.news@gmail.com> wrote:
Hi, I'm still working on importing CSV file content (20.000 records) to database PostgreSQL. when i run the query, once i stored into my table 5218 records, another time 5231 another time 4713 and so on.... every time the amount of records imported to DB is different. Do you have any idea from where it could come ? Here is my PHP code :
<snip>
thanks a lot for any help. -- Alain
Might it be that your script times out? try setting the time limit to unlimited: set_time_limit(0); Apache (or w/e your server is) might still timeout, but these values are a lot higher.. :)
And if that is the case I would strongly recommend that you turn display_errors on and set error_reporting to E_ALL, at least for that script or if this is a development server do it in php.ini. -Stut -- http://stut.net/

« previous php.general (#260734) next »