Date: Sat, 15 Nov 2003 11:59:42 -0600 From: "Kevin D. Kinsey, DaleCo, S.P." <kdk@daleco.biz> To: Ian Barnes <ian@cerebellum.za.net> Cc: questions@freebsd.org Subject: Re: PHP.ini Message-ID: <3FB6698E.8080102@daleco.biz> In-Reply-To: <DGEOIPPIAJBPINGMKMGKMEPODDAA.ian@cerebellum.za.net> References: <DGEOIPPIAJBPINGMKMGKMEPODDAA.ian@cerebellum.za.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Ian Barnes wrote: >Hi, > >I appologise for duplicate posting. I forgot to attach the file > >I am having problems parsing php variables. > >say now i goto http://www.testdomain.com/index.php?news=TODAY its not >carrying the news=TODAY variable to the next page. > >I have gone through my php.ini file and i cant find any problems. Now im >fairly sure that it is my php.ini file thats causing the problems. Attached >is my php.ini, if someone could find a fault i would be most gratefull. > >I am running PHP 4-4.3.3.r1_1,1 withApache 1.3.27_5 on FreeBSD 4.9 Stable. > >Thanks. > >Ian > > While it would be more appropriate to post this in some forum or list that deals specifically with PHP --- I'd recommend the forums at phpbuilder.com or phpfreaks.com; both are friendly and have knowledgeable PHP coders present. However, this is absolutely the #1 FAQ re: PHP at present, and it couldn't hurt, in light of the continual growth in popularity of this scripting language, to address it here. PHP is now shipped with register_globals=OFF, as noted in your attached file. If you access the URL http://www.foo.com/foo.php?bar=baz, and then attempt this in the script "foo.php" <?php echo $bar; ?> You will get no output. It is recommended that you code foo.php thus: <?php echo $_GET['bar']; ?> which is the above case would echo "baz" to the browser. The workarounds are many; the one you are looking for is to change the register_globals directive in your php.ini to =ON and restart Apache. This is not recommended for several security reasons. As mentioned before, it's *recommended highly* that you begin converting your scripts to the latter usage. Kevin Kinsey DaleCo, S.P.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FB6698E.8080102>