Cron Job STILL Not Running

Status
Not open for further replies.

toptrump

New Member
Messages
4
Reaction score
0
Points
0
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?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
The problem is lines 43 and 77 of your script.
 

toptrump

New Member
Messages
4
Reaction score
0
Points
0
OK, I've changed those lines and going to see what it's going to do on the hour.
But what's with the creating it in the wrong directory?
 
Status
Not open for further replies.
Top