크롤링하는 기존 예제인데요
관련링크
본문
//크롤링 불러오기
include_once("/g5/lib/simple_html_dom.php");
$colspan = 4;
$dom = new simple_html_dom;
$dom -> load($cont);
$dom_div = $dom -> find('div.pdtWrap',0);
if($dom_div) {
$dom_ul = $dom_div -> find('ul.pdtList',0);
if($dom_ul) {
$dom_li = $dom_ul -> find('div.pdtBox');
}
}
크롤링 라이브러리를 불러오는건 에러 안나는데 선언하면 사이트 메뉴가 깨지는데 왜그런지 아시는분 계시나요??
답변 3
$dom = new simple_html_dom();
괄호 추가해보세요
!-->PHP Version | 5.5.17p1 |
Directive | Local Value | Master Value |
---|---|---|
allow_url_fopen | Off | Off |
카페24 php 이렇게 되어있는데 안되는건가요??
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = On
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
allow_url_include = On
풀어주니 로컬 apm7에서는 에러가 안나오네요
답변을 작성하시기 전에 로그인 해주세요.