我正在尝试根据 manual 在我的服务器上安装 pecl_http手册适用于 ubuntu,但 apt-cache search pecl_http
返回 php5-pecl-http
作为 pecl http packadge:
sudo apt-get update
sudo apt-get install php-pear php5-dev
sudo apt-get install php5-pecl-http
sudo apt-get install libcurl3-openssl-dev
在php.ini
的末尾添加了extension=http.so
。
http_get()
和我需要的 func http_parse_headers()
说 func 是未定义的。有什么问题?
最佳答案
这可能为时已晚,但对于其他人来说,这里解释了一个解决方案:http://www.mkfoster.com/2009/01/04/how-to-install-a-php-pecl-extensionmodule-on-ubuntu/
sudo apt-get update
sudo apt-get install php-pear php5-dev
sudo apt-get install libcurl3-openssl-dev
然后,
sudo pecl install pecl_http
关于php - 在 debian 上安装 pecl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29531277/