I have a program I wrote in PHP that I'm using to cache information on my system. I would eventually like to set it up to run as acron job on Sundays at midnight. Basically, I have a two part question. First, how can I run it in my web browser without it timing out to make sure it executes without errors. Second, how do I setup the cron job to run a PHP file out of my www directory.
I have included set_time_limit(1000000); in my code. I'm not sure if it's working though because my browser displays a "Page Cannot Be Displayed" error. I expect the program to take well over an hour to execute since it's caching a large amount of data. Any help on this issue is greatly appreciated.