分類廣告   |  新聞   |  評論   |  副刊   |  文化   |  旅遊   |  生活   |  飲食   |  醫療   |  圖片   |  音像   |  專題   |  天氣   |  投稿   |  關於我們   |  訂閲   |  簡體   |  正體   |  English   |  設為首頁
本商業是由 gwu929 註冊,如果你是owner,想更新商業信息,請和 本公司gwu929 聯絡
联系 CONTACT US
789 rd
gathersburg,  DC,  20878
United States
Phone: 8451234567
Fax: 8451234567
Email: wgr929@yahoo.com
website: yahoo123.com
留言:
:花店不见花踪影
:拉拉
:fsdfad
:hihihihihihi
:flower
:admin
:花花话
:fasdfas afasd asdfasdf adfdasdf adfasdf sdfasdf asdfasdf sdfadf
:fsdfasdfasdfadsfadfasdfasdfasdfasdfasdfasdf
:hahaha, not very good at all
介绍 DESCRIPTION

Perhaps the most controversial change in PHP is when the default value for the PHP directive register_globals went from ON to OFF in PHP » 4.2.0. Reliance on this directive was quite common and many people didn't even know it existed and assumed it's just how PHP works. This page will explain how one can write insecure code with this directive but keep in mind that the directive itself isn't insecure but rather it's the misuse of it.

When on, register_globals will inject your scripts with all sorts of variables, like request variables from HTML forms. This coupled with the fact that PHP doesn't require variable initialization means writing insecure code is that much easier. It was a difficult decision, but the PHP community decided to disable this directive by default. When on, people use variables yet really don't know for sure where they come from and can only assume. Internal variables that are defined in the script itself get mixed up with request data sent by users and disabling register_globals changes this. Let's demonstrate with an example misuse of register_globals:

商家登錄
※ 注:大紀元註冊用戶才能登錄商家
用戶:   
密碼: