웹 페이지 데이터를 구문 분석하고 표시하기 위해 PHP (simple_html_dom.php)에 간단한 html dom 파서를 사용하고 있습니다. (: //localhost/test/read.php HTTP)하지만, read.php : 그것은 로컬 호스트 [WAMP 서버]에서 잘 작동도메인의 Html DOM 파서 문제
<?php
include('simple_html_dom.php');
$html = file_get_html('http://www.google.co.in/index.html');
echo $html;
?>
내가 야후 작은 비즈니스 도메인 (예에서 웹 사이트가 : WWW를. 난 내 도메인에서 read.php를 실행하면이 라인을 읽는 동안 mysite.com) 나는이 같은 내 도메인의 경로로이 두 PHP 파일을 배치했다
, http://www.mysite.com/test/read.php 및 http://www.mysite.com/test/simple_html_dom.php
, 그것은 정지 include ('simple_html_dom.ph 피');
사람이 나에게
감사합니다, Nandha 도와주세요
은 무엇입니까 HTTP와 함께 사용할 때
allow_url_fopen
을 필요로file_get_contents()
사용한다 작동 안함? 오류 메시지 란 무엇입니까? 'simple_html_dom.php' 란 무엇입니까? 서버에 파일/라이브러리가 있는지 확인하십시오. – ajreal