Re: Re: Can't get URL or POST variables

From: Date: Mon, 15 Jul 2002 02:40:36 +0000
Subject: Re: Re: Can't get URL or POST variables
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-7749@lists.php.net to get a copy of this message
Thanks Christian. Now i understand why a PHP script worked fine on my ISP but not on my local server. My ISP runs with register_globals=On (probably due to so much confusion in their user base about the 4.0 change). When i get time, i'll rewrite my scripts to handle the (more secure) register_globals=Off setting. --- At 01:43 AM 7/15/02 +0200, Christian Stadler wrote:
Hi, http://www.php.net/manual/en/reserved.variables.php http://www.php.net/manual/en/security.registerglobals.php HTH Greetz, Christian Stadler "Ted R Lowe" <trl@creativespirits.org> schrieb im Newsbeitrag news:4.3.2.7.2.20020714182340.00b18db0@creativespirits.org... i've installed PHP 4.2.1 as CGI with Apache 2.0.39 running under NT 4.0. It is working mostly, since i can run this script: <?php phpinfo(); ?> But i can't get the variables passed in via a URL or POST to be set properly. When i run this test script, tst.php: <?php print "$tstvar"; ?> via http://localhost/tst.php?tstvar=tstvalue i get this Notice: Notice: Undefined variable: tstvar in tst.php on line 1 instead of the expected output: tstvalue The same thing happens when i try to POST data into a .php script. Any help would be appreciated! Thanks, ted -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.install (#7749) next »