I used the exact instruction in here:
http://x10hosting.com/forums/free-hosting/185490-cron-job-not-running.html
OK, let me try and explain this better.
My PHP code write a line to a .csv file and then uses a for loop to scrap multiple pages for data, each loop it should write a line to the .csv
WHEN I RUN THE PHP FROM MY BROWSER
- Runs 9 Time Out Of 10
- Loops Whole Way Through
- Writes .csv Perfect (When it Runs)
WHEN THE CRON JOB RUNS IT ON THE HOUR
- Only writes the plain text first line (not the loop) into the .csv
- For some reason, create the .csv in the root of the website not public_html (where the script is located)
- Creates an empty 'weather_cron_output.log'
It is the command, the version of php or something else?
http://x10hosting.com/forums/free-hosting/185490-cron-job-not-running.html
OK, let me try and explain this better.
My PHP code write a line to a .csv file and then uses a for loop to scrap multiple pages for data, each loop it should write a line to the .csv
WHEN I RUN THE PHP FROM MY BROWSER
- Runs 9 Time Out Of 10
- Loops Whole Way Through
- Writes .csv Perfect (When it Runs)
WHEN THE CRON JOB RUNS IT ON THE HOUR
- Only writes the plain text first line (not the loop) into the .csv
- For some reason, create the .csv in the root of the website not public_html (where the script is located)
- Creates an empty 'weather_cron_output.log'
It is the command, the version of php or something else?