Okay, I've got my dumb face on again! I know very little about cron but I set up cron to work with daily.php this way.
59 23 * * * /home/username/www/daily.php
This is the letter that the cron dameon is sending me.
/home/website/www/daily.php: ?php: No such file or directory
/home/website/www/daily.php: /aquota.user: Permission denied
/home/website/www/daily.php: line 3: syntax error near unexpected token `(e'
/home/website/www/daily.php: line 3: ` by Edward Ritter (esritter@banana.net)'
Can anyone help me with this?
Thank you,
Marie Alline
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-06-13
Hello Marie,
you can't call a php file from cron unless you're running the command line version of PHP as well (which most people don't). You must call another program that is capable of processing the PHP file.
Okay, I've got my dumb face on again! I know very little about cron but I set up cron to work with daily.php this way.
59 23 * * * /home/username/www/daily.php
This is the letter that the cron dameon is sending me.
/home/website/www/daily.php: ?php: No such file or directory
/home/website/www/daily.php: /aquota.user: Permission denied
/home/website/www/daily.php: line 3: syntax error near unexpected token `(e'
/home/website/www/daily.php: line 3: ` by Edward Ritter (esritter@banana.net)'
Can anyone help me with this?
Thank you,
Marie Alline
Hello Marie,
you can't call a php file from cron unless you're running the command line version of PHP as well (which most people don't). You must call another program that is capable of processing the PHP file.
Try changing the above line to
59 23 * * * wget --delete-after http://your-www-site.com/daily.php > dev/null
and see if this helps. Or use lynx as it says in the README.
Greetings,
Zorro