[eluser]tochie[/eluser]
hello brethren,
I set up my cron job. Now in the script that is run, i put this statement there to redirect the page
Code:
<?php header('Location:http://www.websitename.com/something/something.do');?>
That is the link to my code that will choose the word of the day and do other things.
When i tested this, i got a 302 message, like this
Code:
Status: 302
X-Powered-By: PHP/4.4.9
Location:http://www.websitename.com/something/something.do
Content-type: text/html
but the link was not executed. There are two things i'm thinking
1. In the "Location:" above, the link in the address "http://www.websitename.com/something/something.do" was joined with "Content-type" that made the link look like this "http://www.websitename.com/something/something.doContent-type". Could this be the reason why the script did not run OR
2. I should put the actual script im running withing the cron job script and not redirecting like i did?
Please any advice?