Tag Archives: $register_globals

Turn on / off for $register_globals by .htaccess file, “change from php4 to php5″

  1. Create a  file called .htaccess with any editor (like WordPad or Notes or dreamweaver or anyting).
  2. Add the following line in .htaccess:
    php_flag register_globals on
  3. Upload the file to your web hosting account(generally inside of public_html folder). Make sure the name of the file dosen’t have any kind of extension. The file name should be only .htaccess

Fell free to ask about it….