PHP CRON Job

Hi All,

Quick question regarding php and cron,

here is my current path in the cron job etc:

[SIZE=1]*/5 * * * * /usr/bin/php -q /var/www/[hidden]/cron/cron_script.php |mail [email protected] 2>&1[/SIZE]

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,

Thanks!!! :slight_smile: