사용자 삽입 이미지

Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

요런 에러가 날때...

lib.php 최 상단에..

ini_set('register_globals','1'); //
ini_set('session.bug_compat_42','1'); // 추가분
ini_set('session.bug_compat_warn','0'); //
ini_set('session.auto_start','1'); //

을 넣어주시거나..


session.bug_compat_42 = 1
session.bug_compat_warn = 1

요렇게 처리를 하면됨.

레지스터 글로벌 off로 해도 되지만, 보안상 취약하여, on으로 해두시고..
위와 같이 세션처리를 해주면 된다.

;)


Posted by 은델 터보