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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BIG Loop dies with NO error

Status
Not open for further replies.

sen5241b

IS-IT--Management
Sep 27, 2007
199
US
I am loading an array with data from a text file and it dies with no error well before it finishes. The script works fine on one server but not on another. The file is 2703 KB with 296700 rows --so the script should loop 296700 times to load the data into the array. I already changed: max_input_time = 300 in php.ini
but the script times out after about a minute. Yes I have these two lines in the script:

error_reporting(E_ALL);
ini_set('display_errors', true);

Memory? CPU?
 
are you sure that you are editing the right php.ini? and also have you restarted the web server after making each change? check with phpinfo().

also check the server error logs.
 
From my web hosting company, GoDaddy:

Code:
NOTE: Error logs are not available on Economy Hosting – Linux plans. To see if you use Economy Hosting – Linux, click here.

 
this isn't an answer to your question but surely a decent host might be a good start.

i assume you have investigated the other suggestions. I have nothing more to suggest without more information from you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top