If we install the PHP environment but in the test with curl_init () prompt fatal error:call to undefined function:curl_init (), this is to prove that we do not have curl configuration, let me introduce.
Call the Curl_init () function test with the following error message:
Fatal error:call to undefined Function:curl_init ()
WindowsXP 2003
First of all make sure that your PHP is ready to use, this article does not explain the PHP configuration under Windows, just add curl extension.
1, copy the PHP directory of Libeay32.dll and ssleay32.dll two files to c:/windows/system32 directory.
2, modify the php.ini. Remove extension = Php_curl.dll in front of the semicolon.
3. Restart Apache
Complete!
Windows 7/8/vasta
You'll need to the Extension_dir setting-to-the directory where your extensions lives, or where you hav E placed your php_*.dll files. For example:
The code is as follows |
Copy Code |
Extension_dir = C:phpextensions |
Enable the extension (s) in php.ini-want to use by uncommenting the Extension=php_*.dll lines in php.ini. This is do by deleting the leading; From the extension your want to load.
Example #1 Enable Bzip2 extension for php-windows
The code is as follows |
Copy Code |
The following line from ... ; Extension=php_bz2.dll ... to Extension=php_bz2.dll |
http://www.bkjia.com/PHPjc/633218.html www.bkjia.com true http://www.bkjia.com/PHPjc/633218.html techarticle If we install the PHP environment but in the test with curl_init () prompt fatal error:call to undefined function:curl_init (), this is to prove that we do not have curl configuration, the following I introduce ...