apache - PHP script works in browser but times out as cron job -
i wrote php script fetches rss feeds , stores them in database. if access script through browser, runs flawlessly (with admittedly 2 minute wait before outputs log), when runs part of cron job, produces 40% of output , dies out...
i looked around net , tried adding these 2 lines script:
ini_set('max_execution_time', 0); ini_set("memory_limit","256m");
still same problem. i'm sure it's settings issue because current server running script cron-job no problems, , php error log showing few warnings.
what's best way troubleshoot problem on ubuntu server?
update
i noticed if run php code straight command line, perfect execution, think it's cron job problem. noticed execution stops whenever wants add new data mysql database, guess narrows down possibilities..
Comments
Post a Comment