Reputation: 31
I trying for zend framework but when I create project through command prompt that time following warning is coming the warning is PHP Warning: PHP Startup: Unable to load dynamic library '\xampp\php\e xt\php_pgsql.dll
Upvotes: 3
Views: 6596
Reputation: 8124
In My Case, my XAMPP was installed in the following path:
C:\xampp
And also when I try to run the following command on CMD,
any_drive_and_path_here>php phpFile.php
It gave me warning error messages like above, more than 15+!!!
(And I had to do the following steps to resolve for each of the warning messages.)
Then I searched the Google. And I got the idea into mind, whatever it is these modules are gonna be loaded, just because that the relevant line for each module in php.ini file has been un-commented (removing the semicolon ";" at the beginning of each line for each relevant module in php.ini file).
And also as the error msg has given I checked if the extention dll file exists in the
xampp\php\ext directory.
(those extentions were there.)
Then I read the php.ini file instructions which is at the top of that file! :) It has given the instructions, to modify the path in each extension enabling lines.
Summary And To-Do :
In this case, relevant to this warning:
Tip:
if your XAMPP is installed in the following path "C:\xampp" find and modify the following line(lines if you have more warnings than this)
From: extension=php_pgsql.dll
To: extension=C:\xampp\php\ext\php_pgsql.dll
And then whenever you start the CMD and try executing the php command, php.ini knows where the exact place your extension.dll file resides in! :)
Hint:
Don't Forget To Read the php.ini file instructions which is at the top! :)
Tested these steps on Windows 8, I assume this works on other old versions too :)
Upvotes: 5
Reputation: 57640
Somewhere in your php.ini
the extension php_pgsql.dll
is being tried to load. But could not be loaded.
Look for lines like extension=php_pgsql.dll
in your php.ini
then remove it.
But if you are working pgsql then you need fix the dll or find an alternate extension that works!
Upvotes: 3