php 开启 curl扩展

cd /usr/local/src/php-5.2.12/ext/curl
/usr/local/php5/bin/phpize
./configure -with-curl=/usr/local/curl -with-php-config=/usr/local/php/bin/php-config
make
make install
修改php.ini extension = curl.so
重启

你可能感兴趣的:(php 开启 curl扩展)