php-cli by default doesn't use the same php.ini as apache's. Try php -c /path/to/apache/php.ini

Steve

Ross Werner wrote:
Here's the story: php connects to postgres fine when I view the php file
as a web page, but when I run the same file using the command-line php, it
gives me:

<b>Fatal error</b>: Call to undefined function: pg_connect()

I realize that there are different binaries or something depending on
whether you run from the command line or via apache, but I don't know what
I have to add/change/[recompile?!] to get my command-line php to be able
to connect to postgres as normal. Any help?

~ ross



____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to