Apache and PHP

BSD baby bsdlap at hitmedia.com
Tue Apr 15 09:04:39 PDT 2003


> I am running Apache with mod_php and when I try something like `echo $a` in a 
> webpage like `/foo.php?a=bar`, I get no results.
> Could this be a problem with apache? What could be wrong?

Read this page:
http://us2.php.net/manual/en/security.registerglobals.php

And in your page, instead of:
echo $a;

Try this:
echo $_REQUEST['a'];


Although it seems like a pain at first (I type $_REQUEST[''] a few hundred times
a day now) - it really is the smart thing to do.


More information about the freebsd-questions mailing list