PhP cron job won't run!?!

I have a small php script, with no includes that checks a MySQL database and cleans up temporary registrations that has not been email verified every 12 hours.

The php script works fine when called from a browser, however as a cron entry it does not run.

As a test until figured out why it does not run I added the cron entry as “every 2 minutes” like this:

*/2 * * * * /home/testsite/testsite.com/html/testfolder/testscript.php

Can someone please help?

It’s probably because you need something to interpret the PHP file. Try doing something like this:

*/2 * * * * lynx http://testsite.com/testfolder/testscript.php

Thank you very much!

Ok now how do I set in cron so my script runs every hour?

Like this:
*/60 * * * * lynx http://testsite.com/testfolder/testscript.php

or this:

or perhaps every 0(zero) minute?

This cronjob will run on the hour, every hour:

0 * * * * lynx http://testsite.com/testfolder/testscript.php

Similarly, this will run 15 minutes past the hour, every hour:

15 * * * * lynx http://testsite.com/testfolder/testscript.php