[wellylug] php help on Ubuntu needed

Matthew Cruickshank wellylug at holloway.co.nz
Mon Apr 18 16:30:12 NZST 2005


Brent Wood wrote:

> http://localhost/session.php?save=insert
> echo "save :$save:<br>"  shows only "save ::" on screen.


Hi Brent. Getting a url parameter this way is called using global
variables, which were deprecated in PHP 4.2. Try using $_GET['save']
instead.

It's likely that your Redhat box has global variables on and the Ubuntu
box has them off. Although you can turn global variables back on it's
not recommended for security reasons, see
http://www.phpnoise.com/tutorials/2/1



.Matthew Cruickshank
http://holloway.co.nz/








More information about the wellylug mailing list