Live Brilliant

Youtube api 연동시 simplexml_load_file 에러 본문

개발은 핵찜이야/PHP

Youtube api 연동시 simplexml_load_file 에러

주인정 2012. 7. 31. 12:03

[에러] Youtube api 연동중 simplexml_load_file 에러 발생 


Warning: simplexml_load_file() [function.simplexml-load-file]: URL file-access is disabled in the server configuration in C:\APM_Setup\htdocs\youtube.php on line 95

Warning: simplexml_load_file(http://gdata.youtube.com/feeds/api/videos/RK_TkMWTdiw) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found in C:\APM_Setup\htdocs\youtube.php on line 95

Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://gdata.youtube.com/feeds/api/videos/RK_TkMWTdiw" in C:\APM_Setup\htdocs\youtube.php on line 95

Fatal error: Call to a member function children() on a non-object in C:\APM_Setup\htdocs\youtube.php on line 25


[해결] php.ini 파일 수정


;;;;;;;;;;;;;;;;;;

; Fopen wrappers ;

;;;;;;;;;;;;;;;;;;


; Whether to allow the treatment of URLs (like http:// or ftp://) as files.

allow_url_fopen = Off

allow_url_fopen = On 으로 수정 

apache 재시작



Comments