Quote:
Originally Posted by CosmicSea
NEVERMIND. SOLVED! THANKS ANYWAY
|
Quote:
Originally Posted by CosmicSea
i will i just dont have this problem fixed yet.
|
You hurt the logic centre of my brain a little.
Anyway, I think maybe this is the sentence that explains your problem:
Quote:
Originally Posted by CosmicSea
is there a way i can execute the php file myself to make sure it works? i use ubuntu 8.04.
|
The way you'd run the php script from cron is exactly the same as you're run it yourself to test it. Since you apparently don't know how to run the php script to test it then I suspect that you're not calling it correctly from the crontab.
To test the file yourself use
You use the same thing in the crontab
Code:
00 * * * * php /path/to/file.php
However if file.php makes reference to other files it needs to access using relative paths, as is the case in php script I set up to be run from cron the other day I'd use
Code:
00 * * * * cd /path/to && php file.php
Using cd first makes sure file.php could find those other files. If file.php If file.php used absolute paths for the other files it wouldn't be a problem.
I may be wrong of course. If I am post relevant stuff as unSpawn suggests.