2014-06-24 7 views
0

지난 이틀 동안 http_send_file()을 작동 시키려고했습니다.
모든 라이브러리를 찾을 수 있었고 Mac 용 내 MAMP에 pecl_http를 설치했습니다. 10.8
그래도 여전히 작동하지 않습니다.정의되지 않은 함수를 호출하십시오. http_send_file()

감사합니다. 명령 줄에서 내 스크립트의

결과는 sudo 후
PECL 내 php.ini 파일에 pecl_http에게
을 extension_dir = "/Applications/MAMP/bin/php/php5.5.10/을

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 

확장 라인을 설치 lib 디렉토리/PHP/확장/노 디버그 비 ZTS-20121212/"
확장 = mongo.so
확장 = raphf.so
확장 = propro.so
확장 = http.so

+0

아파치를 다시 시작 했습니까? –

+0

예. 그러나 그 결함은이 문제를 해결합니다. 그래서 다음과 같이 sudo pecl uninstall pecl_http; sudo pecl install pecl_http-1.7.6; 그것은 일하기 시작했습니다. 나는 php5.5.10이 pecl_http-2.0.6을 인식 할 수 없다고 생각한다. 그것이 문제였습니다. – user2617611

답변

1

다음 두 명령을 사용하여 문제가 해결되었습니다.

sudo는 PECL 설치 제거 pecl_http
sudo는 PECL 내가 php5.5.10이 pecl_http-2.0.6을 인식 할 수 있다고 생각 pecl_http-1.7.6

설치합니다. 그것이 문제였습니다.

관련 문제