我一直在尝试让http_send_file()工作两天。
我设法找到了所有库并在我的MAMP中安装了pecl_http for mac 10.8
但它仍然无法正常工作。
感谢对此的任何回应。
我的脚本在命令行中的结果
sudo pecl安装后pecl_http
install ok: channel://pecl.php.net/pecl_http-2.0.6
configuration option "php_ini" is not set to php.ini location
you should add "extension=raphf.so" to php.ini
configuration option "php_ini" is not set to php.ini location
you should add "extension=raphf.so" to php.ini
configuration option "php_ini" is not set to php.ini location
you should add "extension=propro.so" to php.ini
configuration option "php_ini" is not set to php.ini location
you should add "extension=raphf.so" to php.ini
configuration option "php_ini" is not set to php.ini location
you should add "extension=propro.so" to php.ini
configuration option "php_ini" is not set to php.ini location
you should add "extension=http.so" to php.ini
我的php.ini中的扩展行
extension_dir =“/Applications/MAMP/bin/php/php5.5.10/lib/php/extensions/no-debug-non-zts-20121212 /”
延长= mongo.so
延长= raphf.so
延长= propro.so
延长= http.so
答案 0 :(得分:1)
使用以下两个命令解决问题。
sudo pecl卸载pecl_http
sudo pecl install pecl_http-1.7.6
我认为php5.5.10无法识别pecl_http-2.0.6。这就是问题所在。