I am using cronjob to activate a php script. Although when i do it manually from the browser, the script takes 3-4 seconds to load and it outputs result into the database.
When cron job does it, it seems that the script is unable to complete in the alloted time and the cronjob stops loading the script mid way, the cron works about 1/10 of the time, the rest 9/10 times it fails to complete the task. Is there a way i can ensure that the script is loaded completely each time the cron job activates it?
Script is simple completely php based. Any suggestions?