2011-10-28 3 views
0

나는이 이전 요청 받았다 알고,하지만 난 모두의 open_basedir 내 도메인에서 작동하지 설정하고이 나는 모든 가이드를 따라 한 어떻게 든 여전히 CURLOPT_FOLLOWLOCATION 심지어 올바른 설정

작동하지 않습니다으로 활성화 할 수 없습니다 safe_mode 완전히 해제, heres phpinfo(); 두

safe_mode Off Off 
open_basedir /home/proagent/:/home/proagent:/tmp/:/tmp:/usr/local/lib/php/:/home/proagent/domains/xxx.com/bot::/home/proagent/domains/xxx.com/bot/ no value 

에 대한 인쇄하지만 아직 난 여전히지고있어

경고 : curl_setopt() [function.curl - SETOPT] : CURLOPT_FOLLOWLOCATION이 때 safe_mode가 활성화 될 수 없습니다 또는의 open_basedir이 설정됩니다/home/proagent/domains/xxx.com/public_html/bot/scrape.php on line 58

어떤 아이디어라도 좋습니다!

답변

0

open_basedir을 설정하고 phpinfo 출력을 설정하면 (왼쪽 값이 계산 됨) 표시됩니다. CURLOPT_FOLLOWLOCATION은 작동하지 않습니다. 모든 파일에 액세스 할 수 있도록 행에 주석을 추가하십시오 (예 : php.ini).

; open_basedir, if set, limits all file operations to the defined directory 
; and below. This directive makes most sense if used in a per-directory 
; or per-virtualhost web server configuration file. This directive is 
; *NOT* affected by whether Safe Mode is turned On or Off. 
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.open-basedir 
;open_basedir = 
관련 문제