简体   繁体   English

PHP 警告:PHP 启动:无法加载动态库 '\\xampp\\php\\e xt\\php_pgsql.dll

[英]PHP Warning: PHP Startup: Unable to load dynamic library '\xampp\php\e xt\php_pgsql.dll

我尝试使用 zend 框架,但是当我通过命令提示符创建项目时,警告即将到来,警告是PHP 警告:PHP 启动:无法加载动态库 '\\xampp\\php\\e xt\\php_pgsql.dll

In My Case, my XAMPP was installed in the following path:在我的案例中,我的 XAMPP 安装在以下路径中:

C:\xampp

And also when I try to run the following command on CMD,而且当我尝试在 CMD 上运行以下命令时,

any_drive_and_path_here>php phpFile.php

It gave me warning error messages like above, more than 15+!!!它给了我像上面这样的警告错误消息,超过 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).我想到了这个想法,不管是什么这些模块都将被加载,只是因为 php.ini 文件中每个模块的相关行已被取消注释(删除每行开头的分号“;”对于 php.ini 文件中的每个相关模块)。
And also as the error msg has given I checked if the extention dll file exists in the并且由于错误消息给出了我检查了扩展 dll 文件是否存在于

xampp\php\ext directory.

(those extentions were there.) (那些扩展在那里。)

Then I read the php.ini file instructions which is at the top of that file!然后我阅读了位于该文件顶部的 php.ini 文件说明! :) 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)如果您的 XAMPP 安装在以下路径“C:\\xampp”中,请查找并修改以下行(如果您有更多警告,请修改行)

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!然后每当您启动 CMD 并尝试执行 php 命令时,php.ini 就会知道您的 extension.dll 文件所在的确切位置! :) :)

Hint:暗示:
Don't Forget To Read the php.ini file instructions which is at the top!不要忘记阅读位于顶部的 php.ini 文件说明! :) :)

Tested these steps on Windows 8, I assume this works on other old versions too :)在 Windows 8 上测试了这些步骤,我认为这也适用于其他旧版本:)

Somewhere in your php.ini the extension php_pgsql.dll is being tried to load.php.ini的某个地方,正在尝试加载扩展名php_pgsql.dll But could not be loaded.但是无法加载。

Look for lines like extension=php_pgsql.dll in your php.ini then remove it.php.ini查找像extension=php_pgsql.dll这样的行,然后将其删除。

But if you are working then you need fix the dll or find an alternate extension that works!但是,如果您正在使用那么您需要修复 dll 或找到一个有效的替代扩展!

您可以修改 php.ini 文件以启用 php_pgsqlsql.dll

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 wampserver加载php_pgsql.dll错误 - wampserver load php_pgsql.dll error PHP 启动:无法加载动态库 PGSQL - PHP Startup : Unable to load dynamic library PGSQL PHP警告:PHP启动:无法加载动态库'\\ xampp \\ php \\ ext \\ php_mailparse.dll' - 找不到指定的模块 - PHP Warning: PHP Startup: Unable to load dynamic library '\xampp\php\ext\php_mailparse.dll' - The specified module could not be found PHP 未在 Windows 上加载 php_pgsql.dll - PHP not loading php_pgsql.dll on Windows PHP启动:无法加载动态库'C:\\\\ xampp \\\\ php \\\\ ext \\\\ php_sqlsrv_7_nts.dll' - PHP Startup: Unable to load dynamic library 'C:\\xampp\\php\\ext\\php_sqlsrv_7_nts.dll' PHP警告:PHP启动:无法加载动态库/usr/lib/php/20151012/php_imap.dll - PHP Warning: PHP Startup: Unable to load dynamic library /usr/lib/php/20151012/php_imap.dll 找不到ubuntu php_pgsql.dll - ubuntu php_pgsql.dll not found yaml xampp 警告:无法加载动态库 'C:\xampp\php\ext\php_yaml.dll' - yaml xampp warning: Unable to load dynamic library 'C:\xampp\php\ext\php_yaml.dll' 警告:PHP 启动:无法加载动态库 - Warning: PHP Startup: Unable to load dynamic library 如何解决PHP警告:PHP启动:无法加载动态库'php_ffmpeg.dll' - How to fix PHP warning: PHP Startup: Unable to load dynamic library 'php_ffmpeg.dll'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM