<form action="phpPage.php" method="GET">
Name: <input type="text" name="name" /><br>
Email: <input type="text" name="email" /><br>
<input type="submit"/>
</form>
<?php
echo "Hi ".$name.", your email address is ".$email.".";
?>
<?php
echo "Hi ".$_GET["name"].", your email address is ".$_GET["email"].".";
?>
<?php
echo "Hi, your IP address is: ". $REMOTE_ADDR ;
?>
<?php
echo "Hi, your IP address is: ". $_SERVER["REMOTE_ADDR"] ;
?>
php_flag register_globals 0
34sp.com said:Unfrotunately, by turning it off at a server level, a great number of scripts would break, due to the way in which they are coded.
As you have discovered, it is possible to override this at a domain level using the .htaccess file.