note 51229 added to function.pg-connect

From: Date: Thu, 24 Mar 2005 04:24:12 +0000
Subject: note 51229 added to function.pg-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-86868@lists.php.net to get a copy of this message
We have postgresql interfaced with php4, and php4-cli. If we tried to connect to database using apache the connection would be established but when the same program is being executed using PHP4-cli we were getting FATAL : undefined funciton pg_connect() After debugging, we found that the required extension modules (pgsql.so and imlib.so) were not added to the php.ini scripts found in /etc/php4/cli, but, were included in /etc/php4/apache. Solution to correct this problem is to append the following lines to php.ini file in /etc/php4/cli. extension=pgsql.so extension=imlib.so This was tested on Debian machine. Hope it works on others also. ---- Manual Page -- http://www.php.net/manual/en/function.pg-connect.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51229 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51229&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51229&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51229&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51229&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51229&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51229&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86868) next »