php - Script terminates for no apparent reason -


i'm struggling script imports data via xml. there total of 19,000 products, spread out on 76 files , scripts runs through each file, parses data , imports database.

for reason however, script terminates without telling me whats wrong.

  1. i'm using error_reporting(e_all); ini_set("display_errors", 1);
  2. i have error reporting on sql, there no errors
  3. i'm tracking memory usage via memory_get_usage() - doesnt come near set memory_limit
  4. i reset time_limit() each project , there plenty of time

the weird thing script stops @ different points, based on amount of logging output. if don't change output, script stops @ same point. if add (or remove) logging (/output) script stops @ different points.

it seems has memory or timeout, because of termination @ random points based on output, can't figure out what's causing it. there no errors messages...

what can find out what's wrong?

update

it seems errors not showing on server after all. forced fatal error (removed semi-colon) , got browser message saying there 500 server error. when same on local machine real error message. be? when print error_reporting() "1" , ini_get("display_errors") shows me "6143" (which e_all). how can error message show?

i've checked phpinfo() time limit, default 30 when add set_time_limit(60); before phpinfo, shows 60. seems right. according phpinfo safe_mode off

after timing script execution saw died after 12 seconds - can't time_limit

you need at

http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time

perhaps script in safe mode

http://php.net/manual/en/function.set-time-limit.php


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -