Variables within PHP

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
cmxflash
-


Joined: 11 Dec 2004
Posts: 872

PostPosted: Sun Apr 09, 2006 1:11 pm    Post subject: Variables within PHP Reply with quote

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.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group