Posted By

cochambre on 06/30/06


Tagged

ini php register globals configuration


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

postNuKe
nicolaspar
millisami


Desactivar Register Globals sin modificar php.ini


 / Published in: PHP
 

  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  

You need to login to post a comment.