pgsql_php extension issue (windows)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I have installed Apache 2.2.11/Postgres 8.3.6/PHP 5.2.9. I am getting the 
following issue when loading php on the apache server

<<<<<<<<PHP Warning:  PHP Startup: Unable to load dynamic library 
'.\\php_pgsql.dll' - The operating system cannot run %1.\r\n in Unknown on 
line 0>>>>>>>>

I've copied the extensions I'm loading to the root php directory, then 
changed the extension_dir in php.ini to ".\", so that's why the path is just 
..\\php_pgsql.dll . I've also added the root php dir to the path e.v. I have 
no trouble running a php script with apache, so long as it doesn't include 
any pgsql functions. Finally, and MOST IMPORTANT, when I run my php script 
using the command-line php.exe, it connects to my pgsql database and 
retrieves records just fine. So the problem is in the way that apache loads 
php, and not in the way that php loads the extensions.

I've googled furiously for the fix, but haven't found any solution. Also, 
I've tried a fix suggested by somebody where you add the postgres bin 
directory to the path, but no joy. 



[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux