PEAR works on command line, not CRON

PEAR works on command line, not CRON

Posted by: hhutkin
Posted on: 2008-03-06 02:56:00

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

<br />
<b>Fatal error</b>: 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/");

Re: PEAR works on command line, not CRON

Posted by: norm1037
Posted on: 2008-03-09 06:51:00

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!! mad

You act on my advice at your own risk!

Tags: php scriptphp 5pearcontent typetext html