CI 묻고 답하기

제목 magic_quotes_gpc (php 5.3.3)
글쓴이 배강민 작성시각 2010/08/03 17:30:10
댓글 : 2 추천 : 0 스크랩 : 0 조회수 : 28934   RSS
배강민
Array
(
    [type] => 2
    [message] => Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater
    [file] => Unknown
    [line] => 0
)

딱 CI의 질문은 아니라서 죄송하지만, 문의드려봅니다.

5.2대에서 사용하던놈을 5.3.3서버로 옮기고 있는데...

페이지 하단에 위 에러가 떨어지네요....

좀 찾아보고,  php.ini에서 on, off 바꿔봐도 안없어지고요.. 문제없던 5.2대 서버 php.ini보니 on이던데...

혹, 관련해서 아시는 분 계시면 답변 부탁드려봅니다...

 다음글 음.. 크론은 어떻게 사용하나요.. (3)
 이전글 썸네일 관련 질문입니다.. (6)

댓글

kirrie / 2010/08/03 20:49:39 / 추천 0
php.ini 에서 해당 라인 주석처리 하면 되지 않을까? ㅎㅎ
양승현 / 2010/08/25 14:39:46 / 추천 0
Warning

This feature has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.

Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped with a backslash automatically.

Note:

In PHP 4, also $_ENV variables are escaped.

Note:

If the magic_quotes_sybase directive is also ON it will completely override magic_quotes_gpc. Having both directives enabled means only single quotes are escaped as ''. Double quotes, backslashes and NUL's will remain untouched and unescaped.

See also get_magic_quotes_gpc()