LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   register globals in php (https://www.linuxquestions.org/questions/linux-software-2/register-globals-in-php-766694/)

luvlinux2009 11-04-2009 12:56 AM

register globals in php
 
Hello,

How bad is it to enable register_globals in php?
Does it depend on the usage or is it so bad that it shouldn't be used?
What can possible happen if it's enabled?

TB0ne 11-04-2009 01:56 PM

Quote:

Originally Posted by luvlinux2009 (Post 3743716)
Hello,

How bad is it to enable register_globals in php?
Does it depend on the usage or is it so bad that it shouldn't be used?
What can possible happen if it's enabled?

Lots can POSSIBLY happen. But what DOES happen depends on what you do to prevent it, not on from PHP, but Apache, your firewalls, and your code itself. This doc: http://www.php.net/manual/en/security.globals.php covers it pretty well.


All times are GMT -5. The time now is 08:52 AM.