테스트 사이트 - 개발 중인 베타 버전입니다

simple_html_dom.php 불러오고 apm7 로컬에 설치하고 테스트하려는데 에러나오는데요 채택완료

GST1 3년 전 조회 1,460

Warning: file_get_contents() [http://127.0.0.1/function.file-get-contents">function.file-get-contents]: URL file-access is disabled in the server configuration in C:\APM_Setup\htdocs\simple_html_dom.php on line 77 Warning: file_get_contents(http://vhost.kr/g5/test/c1.html) [http://127.0.0.1/function.file-get-contents">function.file-get-contents]: failed to open stream: no suitable wrapper could be found in C:\APM_Setup\htdocs\simple_html_dom.php on line 77 Fatal error: Call to a member function find() on a non-object in C:\APM_Setup\htdocs\index.php on line 28

 

 

라이브러리가 설치가 안되서 안되는걸까요??

카페24에서는 에러가 안나오고 에러 500으로만 나오더라구요.

 

어떻게 하면 좋을까요??

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
세크티
3년 전

 allow_url_fopen이 off이면 file_get_contents가 안먹힙니다. curl을 사용하세요

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

G
GST1
3년 전
Fatal error: Call to undefined function curl_init() in C:\APM_Setup\htdocs\index.php on line 13

apm7 에서는 curl_init 설치가 안되어있는거죠??

댓글을 작성하려면 로그인이 필요합니다.

윤석렬
3년 전

http://vhost.kr/g5/test/">크롤링 (vhost.kr)

 

카페24에서 하니 이제 잘나오네요

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인