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

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -