I'm moving a bunch of PHP scripts from a server where they ran on
PHP4, to a new server with PHP5.
On the old server, variables in the query string would be
automatically instantiated in the code, so for example with this PHP
code:
<?php
print "Username: $username";
?>
accessing this URL would print the username "bennett":
http://69.20.9.236/php/test2.php?username=bennett
However, on the new server, it does not:
http://12.47.46.159/php/test2.php?username=bennett
Is this something that changed between PHP 4 and 5? I couldn't find
anything about this listed in the "What's new in PHP 5" at
http://devzone.zend.com/node/view/id/1714
The output of phpinfo() on the two servers is:
http://69.20.9.236/php/showall.php
http://12.47.46.159/php/showall.php
Is there some simple change that I can make, that will enable all of
the old PHP scripts to work on the new server? I'm really hoping the
latest version of PHP didn't force everyone to rewrite scripts that
used the old behavior.
-Bennett