Desactivar Register Globals sin modificar php.ini


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. # TURN OFF "REGISTER GLOBALS" WITHOUT EDITION OF PHP.INI
  2. if (ini_get("register_globals")){
  3. foreach ($_REQUEST as $k => $v){
  4. unset($GLOBALS[$k]);
  5. unset($$k);
  6. }
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.