The server does not support curl

  
                  

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); ?>

Open 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

.

This extension library is still very good and is a valid alternative to fsockopen and more.

Method 2 Enter the source directory of the original php,

cd ext cd curl phpize ./configure --with-curl =DIR make will be under PHPDIR/ext/curl /moudles/Generate a file for curl .so.

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

Copyright © Windows knowledge All Rights Reserved