Posted by Marnok.com on 07/19/07 06:58
"gagal" <lynettesmith@gmail.com> wrote in message
news:1184718859.232297.98790@j4g2000prf.googlegroups.com...
>I wrote a script to send out a birthday email each month. When I
> tried to run as a cron job I got "no file found". I'm using cpanel
> and have file in folder ie crons/birthdayemail.php. I figured I gave
> it wrong url in my cron but I'm not sure what to do.
>
Is it the file in the previous post?
Could be some problem with the include - I had trouble getting includes to
work in a cron job until I put
chdir(dirname(__FILE__));
at the top of the file I was calling in the cron.
Also the command to run was
usr/bin/php -q /home/MYHOST/public_html/MYDOMAIN/FOLDER/FILE.php
which was a bit more complex that I'd realised I would need!
Navigation:
[Reply to this message]
|