Register in PHP

xiaoxiao2021-03-06  69

When reading << PHP and MySQL Web Development >>, read the first example of Chapter 20. Direct operation found a warning, and the behavior of the program is abnormal. Later, it was found to be the problem of register_globals. Set to ON. .

; You should do your best to write your scripts so that they do not require; register_globals to be on; Using form variables as globals can easily lead; to possible security problems, if the code is not very well thought of.

Here is not recommended to use globals, then how should I use it? I started learning really unclear. Let's record it first.

转载请注明原文地址:https://www.9cbs.com/read-121042.html

New Post(0)