PEAR works on command line, not CRON

software development

#1

I can get my php script to run from the command line, but when it’s called from CRON, it gives this error:

X-Powered-By: PHP/5.2.3
Content-type: text/html


Fatal error: Call to undefined function xslt_create() i

I added this line to the start of my script, which again gets it to work from command line, but still fails from CRON.

ini_set(“include_path”,
ini_get(“include_path”).":/usr/local/lib/php:/home/[myuser]/pear/php:/home/[myuser/pear/");


#2

What is your crontab entry like?
If you can post it maybe someone will spot something wrong.
Are you using full paths to php5 in your crontab?


Norm

Opinions are my own views, not DreamHosts’.
I am NOT a DreamHost employee OK!! :@

You act on my advice at your own risk!