php - fgetcsv dies on live instance on dev not -- where to look -
i have identical live , dev instances on same server
(seperated fastcgi identical php.ini)
i run in script command
while (($data = fgetcsv($handle, 10000, ";")) !== false) {
on dev instance command runs without problems
44000 lines, uses 200mb of memory (of 512mb given)
on live instance runs line 28700
, crashes script without output
133mb of memory used
i put command in "try" no error thrown
where next
update
crashes without output (blank page)
execute http page
script stops when returning while statement (narrowed down writing file state)
it's dedicated server
update2 forgot php error log :/
-- according it, seems exhausted memory though it's weird ..
you check php error logs. depending on configuration php errors may show in web server logs or in dedicated php log file.
see http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-log
Comments
Post a Comment