PhpUndefinedvariable and Undefinedindex. In the php Tutorial undefinedvariable and undefinedindex, this problem occurs because the variable is undefined. we just need to add a verification such as $ aisset ($ _ get [aa])? $ _ Get [aa]: the variable is undefined. in this case, the undefined variable and undefined indexes of the php Tutorial are not performed.
If this problem occurs, the variable is undefined. we only need to add a verification code, as shown in figure
$ A = isset ($ _ get ['A'])? $ _ Get ['A']: 'variable undefined ';
In this way, undefined variable and undefined index are not displayed for undefined variables.
Yes. at the same time, we also provide methods for setting errors and not prompting in php ini or php.
Solution:
1) error_reporting settings:
Locate error_reporting = e_all
Change to error_reporting = e_all &~ E_notice
2) register_globals settings:
Find register_globals = off
Change to register_globals = on
When undefined variable and undefined index occur, the variable is undefined. we just need to add a verification code such as $ a = isset ($ _ get ['AA'])? $ _ Get ['A']: 'variable undefined '; so that no...