The server does not support the curl

  
server does not support curl_exec What to do: Open the windows: 1, copy the libeay32.dll, ssleay32.dll, php5ts.dll, php_curl.dll files in the PHP directory to the system32 directory.

2, modify php.ini: configure extension_dir, remove the semicolon in front of extension = php_curl.dll.

3, restart apache or IIS.

Test whether the installation was successful:

<?php$ch = curl_init(); curl_setopt($ch,CURLOPT_URL,"http://www.google.cn"); curl_setopt ($ch,CURLOPT_HEADER,1); curl_exec($ch);curl_close($ch);?>Opening method under linux: Method 1 Install cURL# wget http://curl.haxx.se/download/curl-7.17 .1.tar.gz# tar -zxf curl-7.17.1.tar.gz# ./configure --prefix=/usr/local/curl# make; make install install php just open the switch --with-curl=/Usr/local/curl will do. This extension library is still very good and is a valid alternative to fsockopen and more. Method 2 enters the source code directory of the original php installation, cd extcd curlphpize./configure --with-curl =DIRmake

will generate the curl .so file under PHPDIR/ext/curl /moudles/.

Copy the curl .so file to the extensions configuration directory, and modify php.ini.

Copyright © Windows knowledge All Rights Reserved