Crontab Jobs + PHP5

software development

#1

I’m using PHP 5 for the simple_xml functions. I have a script I want to run with crontab, but when I try to run it, it says the simple_xml functions are undefined. So I’m assuming it’s trying to use PHP 4. How can I get it to use PHP 5?

Thanks.

PCMichael
"Trying is the first step towards failure." ~ Homer Simpson


#2

You’ll need to locate the right PHP binary. Not sure exactly where it is…it’s under cgi-system, relative URL, so I guess the best bet would be to figure out, on the file system, where cgi-system maps to.