Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script stopping without explination

Status
Not open for further replies.

monkle

Programmer
Feb 11, 2004
132
US
I have a script that updates a database with the contents of a csv file.

There are 127,618 rows in the file, but it stops running at around row 4,000.

I was wondering if it could be the process timing out, so I added this line to the beginning of the script:

Code:
set_time_limit(2160000);

I have never seen behavior like this in a php script before. I don't believe that it is an issue with the script itself, as it is a modified script that I have been running on an older server. I don't know where to look to find the problem, however. Any insight would be greatly appreciated.
 
Ok, I think I have eliminated PHP as the culprit. I am running IIS 6 on a Windows 2003 machine, but I don't know all of the places to look for where it is timing out. According to what I can find, IIS 6 does default to timing out after 300 seconds, or five minutes, which is what it appears to be doing. Do you know where to change these settings, or anyplace that has more information on this? I have changed all of the timeout-related settings in IIS that I can find, but the script is still not executing correctly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top