728x90
반응형
PHP/CodeIgniter3(6)
-
codeigniter Argument 1 passed to CI_Exceptions::show_exception() must be an instance of Exception, instance of Error given
https://stackoverflow.com/questions/36982769/codeigniter-ci-exceptionsshow-exception-error-after-updating-to-php-7 Exceptions.php
2020.07.28 -
PHP Codeigniter DB인젝션을 조심하자
쿼리스트링의 파라미터를 sql문에 사용하는 경우, SQL 인젝션을 예방해야 한다. 다음 그림을 SQL 인젝션을 쉽게 설명하고 있다. (출처: xkcd 327화 'Exploits of a Mom') 예를 들어 내가 $member_id = $this->input->get_post('member_id'); $sql = 'select name, city, grade, major from member_list where member_id =' . $member_id; $this->db->query($sql)->result_array(); 머 이런 sql문을 작성했을 때, 나쁜놈이 내 파라미터를 건드려서, 원래대로라면 42라는 숫자였어야 할 값을 'null or 1=1'라는 문자열로 넣어버린다면? 거기에다가 이어서..
2020.04.28 -
코드이그나이터 폴더 구조(directory structure) : application, system32
참고자료: https://www.w3adda.com/codeigniter-tutorial/codeigniter-directory-structure [application] It's where all of the code specific to our app will live. Including all of it's models, controllers and views. [system] It contains all of the inner-working of CodeIgniter. All of the files that will help power our app are contained within this folder.
2020.01.22 -
php 프레임워크 코드이그나이터 3.0 (CodeIgniter 3.0)
http://www.ciboard.co.kr/user_guide/kr 코드이그나이터(CodeIgniter)는 PHP로 작성된 웹프레임워크. 일반적으로 필요한 프로그래밍 라이브러리를 제공. - 무료 - 가벼움(코어 시스템은 겨우 몇 개의 작은 라이브러리만 사용. 추가적인 라이브러리는 필요할 때만 동적으로 로드) - MVC(Model-Viwe-Controller) 패턴에 기반 - 템플릿 엔진이 필요 없음(그냥 php 코딩 하듯이 쓰면 된다는 말) http://www.ciboard.co.kr/user_guide/kr/installation/index.html 코드이그나이터 설치 http://www.ciboard.co.kr/user_guide/kr/tutorial/index.html 코드이그나이터 튜토리얼
2020.01.15 -
php _, __ 의미
https://forum.arduino.cc/index.php?topic=48820.0 Used in front of member variables in a class, to distinguish them (for the reader) from local variables. The presence or absence of the _ (or __) makes no difference to the compiler. Used in front of variables that are part of a class. Not global, not local in a function, but in a separate class. https://stackoverflow.com/questions/6812084/what-is..
2020.01.15 -
php @, &, :: 의미
1. @ (Error control opertator) 존재하지 않는 butterfly.php를 include하려고 하면 'Warning: include(butterfly.php): failed to open stream: No such file or directory in', 'include(): Failed opening 'butterfly.php' for inclusion' 오류가 발생한다. 하지만 include() 앞에 @를 붙이면 그런 오류메시지가 출력되지 않는다. 2. & C의 포인터 같은 것. $b는 $a의 바로가기 같은 것이라고 생각하면 된다. $a에 직접 +1을 하지 않아도, $b + 1의 결과로 $a는 2를 갖게 된다. 3. :: class 속 const, static 변수에 접근할 수..
2020.01.15