cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Sun Apr 09, 2006 1:11 pm Post subject: Variables within PHP |
|
|
Just found out that I can use $somevar instead of $_GET['somevar']. Since I think of it as a security-risk, I don't want it to be possible on my server.
I want to get each variable sent trough GET myself using $somevar = $_GET['foobar'];.
I tried changing the register_globals to "off" in my php.ini-file, but it didn't work.
Here's an example:
http://pb.servegame.com/test.php?test=Test
The source code to that page:
Code: | <?php
echo $test;
?> |
*Edit*
Fixed it, downloaded the recommended php.ini-file. |
|