When running PHP scripts as a command like you do, you don't always get the same result as running it on the web-server. I dont know anything about RedHat enterprise, but on e.g. Debian you have two different php.ini files - one for the web-server and one for CLI (command line interface). Also it's easy to mess up things like who is the running user and the environment variables.
So instead you can just make a script somewhere in the web-space, test it, and when it works, add a "wget http://localhost/..." in the cron.
If you dont want anyone to accidentally access your script, you can just check $_SERVER['REMOTE_ADDR'] and stop if not your own server.
Last edited by Guttorm; 08-04-2006 at 07:38 AM.