Re: [問題] PHP4的register_globals 究竟該設定為ꐠ…

看板FreeBSD作者 (波特多)時間20年前 (2005/08/15 11:14), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
※ 引述《donkeykong (硬碟不足)》之銘言: : 小弟之前是設定成register_globals=On : 於是將其turn off後 之前寫的PHP code的 : 有用到session_start();功能 : 反而出現 : 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 no : t consider global variables as a source of data, unless register_globals is en : abled. 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 l : ine 0 : 無法吃到session的變數 : 請問 大家這個選項是有開啟的嗎 謝謝 自己用的server是關的,公司用的是開的,因為公司的程式是3版時就留下的 ,不開不行。 自己用的server上是4版之後才寫的,都乖乖的用$_SESSION在做了。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.84.97.227
文章代碼(AID): #1300Yms3 (FreeBSD)
文章代碼(AID): #1300Yms3 (FreeBSD)