LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   php variables not being passed on (https://www.linuxquestions.org/questions/linux-software-2/php-variables-not-being-passed-on-41103/)

tpat 01-11-2003 02:58 PM

php variables not being passed on
 
i recently compiled php 4.3 on my machine, and now variables are not getting passed on between scripts. variables from forms, query strings, etc. are not working. what is the problem here?

leed_25 01-11-2003 03:11 PM

I'll bet that you need to set register_globals=on to
get your old behavior. You should probably consider
refactoring your code so that you can leave
register_global at it's default value of 'off'. Here's
a link to a page on the PHP site wherein this issue is
discussed:


,----[ http://www.php.net/manual/en/securit...terglobals.php ]
| One feature of PHP that can be used to enhance security is
| configuring PHP with register_globals = off. By turning
| off the ability for any user-submitted variable to be
| injected into PHP code, you can reduce the amount of
| variable poisoning a potential attacker may inflict. They
| will have to take the additional time to forge
| submissions, and your internal variables are effectively
| isolated from user submitted data.
`----

If this post was helpful to you, please consider hitting my 'Affero' button.


All times are GMT -5. The time now is 10:35 PM.