PHP simple html dom 사용시에 uncaught error: call to a member function find 오류가 날때 해결 방법 > 개발

본문 바로가기
사이트 내 전체검색

개발

PHP simple html dom 사용시에 uncaught error: call to a member function find 오류가 날때 해결 방법

페이지 정보

profile_image
작성자 관리자 (119.♡.119.69)
댓글 0건 조회 1,884회 작성일 23-04-11 15:45

본문

PHP simple html dom 사용시에 uncaught error: call to a member function find 오류가 날때가 있다.


1. 원인

반환받는 html 의 크기가 600000 보다 클 경우 발생할 수 있다.

https://stackoverflow.com/questions/6832197/weird-error-using-php-simple-html-dom-parser/26773587#26773587
https://stackoverflow.com/questions/42703159/simple-html-dom-parser-error-find-function-on-boolean


2. 해결방법

simple_html_dom.php 파일안에 있는 MAX_FILE_SIZE 이 정의되어 있는데,
이 상수값을 더 크게 늘려 준다.

defined('MAX_FILE_SIZE') || define('MAX_FILE_SIZE', 6000000);

추천0

댓글목록

등록된 댓글이 없습니다.

Total 387건 2 페이지
  • RSS
개발 목록
번호 제목 조회 추천 날짜
열람중1885004-11
3661870004-11
3651355004-10
3643279004-10
3631518003-22
3622065003-15
3612136003-09
3601577012-05
3591576010-02
3581710009-08
3571524009-07
3561754008-19
3551757008-18
3541492008-11
3533747008-10
3521672008-03
3511375007-27
3502430007-24
3492173007-24
3481829007-17

검색


사이트 정보

Copyright © Baragi.Net. All rights reserved.