M3Server Technical Blog FAQ apache php register_globals

apache php register_globals



php register_globals is generally a security and should not be used unless the script is fully trusted and you are okay with your server being less secure.

Q) What if your hosting sites with different scripts, some require it, and some don’t?

A) Open your favorite plain text editor, such as TextEdit for Mac or Notepad for windows.  Enter the info below:

register_globals = Off

Save the file as php.ini.  Upload this file to your web sites root directory, such as:

M3Control Panel server path:

/home/user/domain_com/php.ini

Cpanel server path:

/home/user/domain_com/public_html/php.ini

Now, controlling register_globals is under your control.

NOTE:  register_globals is depreciated with php 5.3.x and plans should be made to discontinue its use.

Leave a Reply