특정쿼리 실행 시 발생 데이터 수는 10000건 쿼리문은 select * from 테이블명 where a=value and b in ()인데 in 에서 값을 많이줘서 그런가?
Out of memory 메모리 부족
·
Development/PHP
Fatal error: Out of memory (allocated 4194304) (tried to allocate 232471 bytes) in 파일명.php on line 697 PHP 소스코드에 아래 코드 추가 메모리 무제한 설정 ini_set('memory_limit','-1');
유니코드 변환(decode)
·
Development/PHP
# unicode decode function utf8_urldecode($str) { $str = preg_replace("/%u([0-9a-f]{3,4})/i","&#x\\1;",urldecode($str)); return html_entity_decode($str,null,'UTF-8');; } # use $str = utf8_urldecode($str); 참고 : https://www.php.net/manual/en/function.urldecode.php
특정 값 안나올 때 (ex. 작성자, 날짜 등)사이트내의 `network`에 검색했을 때도 안나오는 값일 경우,정상적으로 웹 파싱이 안되어서 값을 못불러오는 경우 일 수 있음. 그럴 경우 파싱넘겨주는 값을 수정한다1. `path` 추가2. `user-agent` 변경 (4.0 => 5.0)3. `cookie`값 추가 해주었더니 정상적으로 모든 값이 파싱됨.$strParseContent = "";$strParseContent .= "GET"; // POST, GET 선택$strParseContent .= " {$strParseSubURL} HTTP/1.0\r\n"; // 도메인이외의 파라미터값.$strParseContent .= "Host:{$strParseHost}\r\n"; // "http://" 제거..
MobaXterm 팝업 창(X11 remote access)
·
Development
에러 내용X11 포워딩과 관련된 보안 경고창 alretAn apllication on remote computer {ip 주소} has requested access to the X server. Do you want to allow it?In order to disable this warning, set "X11 remote access" to "full" in mobaXterm global settings --> "X11"tab.원격 컴퓨터 {ip주소}에서 X 서버에 대한 액세스를 요청했습니다. 허용하시겠습니까?이 경고를 비활성화하려면 mobaXterm 전역 설정 --> "X11"탭에서 "X11 원격 액세스"를 "full"로 설정하십시오. 원격 서버 ({ip 주소})에서 GUI 애플리케이션(X11 ..