Cron from the Panel in PHP4?

I’ve scheduled a cron job using the dreamhost panel and I’m getting an error that would indicate the server is trying to run the php script as php4 rather than php5:
"Cannot instantiate non-existent class: simplexmlelement"
If I go to the php file in my browser the script works just fine.

Is there a way to force cron jobs scheduled from the panel to run as php5?

The trick here is to make sure that you use the correct command line path to the PHP 5 CGI-CLI binary, as described in the DreamHost wiki article on PHP.

–rlparker
–DreamHost Tech Support