Menu

PHP register_global variable turned OFF

Naoto
2004-01-04
2004-01-04
  • Naoto

    Naoto - 2004-01-04

    Hello. I am new to PHP and found this program very usefull. But it took me while to understand how generated codes pass query string.

    The first of all I did not know PHP's "register_global" variable in php.ini file. But I know now how that works.

    My problem is, I have to manage several linux and Windows hosts and some of them are register_global turned ON and some of them are OFF.

    Here's my question. Is there any settings that will help my situation?

    I think I would like to generate all codes that assume register_global turned OFF. Thank you very much.

     
    • Naoto

      Naoto - 2004-01-04

      Opps.. I think I would overcome my problem by entering below lines in head.php or some file included every page.

      <b>ract($_POST);
      extract($_GET);</b>

       
    • Naoto

      Naoto - 2004-01-04

      Opps.. I think I would overcome my problem by entering below lines in head.php or some file included every page.

      ract($_POST);
      extract($_GET;

       
    • Naoto

      Naoto - 2004-01-04

      Sorry.....

      extract($_POST);
      extract($_GET);
         

       

Log in to post a comment.

Auth0 Logo