Quick question regarding php and cron,
here is my current path in the cron job etc:
*/5 * * * * /usr/bin/php -q /var/www/[hidden]/cron/cron_script.php |mail firstname.lastname@example.org 2>&1
The script basically queries the database and emails etc. When I visit the web page it works perfectly, but if I leave the script to be executed via cron it does nothing. I know it's working because I recieve the cron email from 'root'.
Any ideas why it may not be working?
I would really appreciate some advice on this,