- Feb 11, 2005
- 4,263
- 0
- 0
I have a large project that I'm converting from a fully working mysql setup to use pgSQL. I've installed PostgreSQL version 8.3.3 and rebuilt PHP using the following config:
./configure --with-pgsql=/usr/local/pgsql
After everything appeared to successfully install, I went to test my project and all of my pg_ functions return:
Fatal error: Call to undefined function pg_*() in....
(obviously where * is the rest of the function - its the same for all of
them)
However, I tried to run a pg function from the command line using php -r and they work as expected (i.e. php -r "pg_connect('host=localhost');" returns an error saying there is no password, rather than an undefined function)
I've tried several php snapshots and they all have similar or equal behavior. (my current one is still the release of 5.2.6 as stated)
Any help would be appreciated.
./configure --with-pgsql=/usr/local/pgsql
After everything appeared to successfully install, I went to test my project and all of my pg_ functions return:
Fatal error: Call to undefined function pg_*() in....
(obviously where * is the rest of the function - its the same for all of
them)
However, I tried to run a pg function from the command line using php -r and they work as expected (i.e. php -r "pg_connect('host=localhost');" returns an error saying there is no password, rather than an undefined function)
I've tried several php snapshots and they all have similar or equal behavior. (my current one is still the release of 5.2.6 as stated)
Any help would be appreciated.