开发者

PHP extension unable to load

I want to enable MySQL and Curl extension. therefore I uncomment the lines for enabling there extension into php.ini.

Also added environment variables to PHP to C:\PHP and PHRC to C:\PHP

Copied the dlls to system32

When i am opening php.exe , I am seeing the following error : Even tried to runing the code. it is throwing me this error Fatal error: Call to undefined function curl_init() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test.php on line 7

C:\PHP>php.exe PHP Warning: PHP Startup: Unable 开发者_如何学Goto load dynamic library 'ôC:\PHP\extö\php_curl .dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'ôC:\PHP\extö\php_mysq l.dll' - The specified module could not be found. in Unknown on line 0

I am using windows 7 , apache 2.2 and php 5


You should take in consideration more things, like:

  • Locate any php.ini file on your system. If you have installed PHP using and installer than a ini file could be found in the installation folder as in the Windows folder as well.
  • Copy the libraries in the same folder with the php.exe extension.
  • Check your configuration for those special characters you got going there. What is that character before C:\ and what is with that spacing in the filename?

    ôC:\PHP\extö\php_mysq l.dll


It could be a problem with a wrong dll file.
You need a dll that is compatible with your php version.
Go to http://php.net and download new php package.

Or it can be a problem with a wrong value of "extension_dir" in php.ini
Try to change your extension directory to something simpler (without special characters), for example:
extension_dir = "c:/PHP/ext"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜