PHP configuration settings ?
Ex: If you type ...../index.php?a=abc
the script should respond by echoing abc.
The code:
<?php
if (isset($a))
echo $a;
else
echo 'Error, variable a not specified';
?>
While this works on his online server, it does NOT work on my server. It just flows down the the error text. If I add the following line to the top of the script,
$a = $_GET['a'];
It works.
He explained that it could be a setting in my PHP configuration for security reasons. I would like to change that, since this is not a production server . It's just one I tossed together to learn PHP on. While this may seem like a simple fix, what I am concerned about is OTHER possible issues that may not work the same on the two servers that will get me chasing my tail, thinking I've coded wrong.