RE: [PHP-INST] Problem
| From: | Rich Gray | Date: | Thu, 27 Mar 2003 18:12:55 +0000 |
| Subject: | RE: [PHP-INST] Problem | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-10438@lists.php.net to get a copy of this message | ||
> I have installed php 4.3.1 in my Apache server 1.3.2 as a server
> module abd the operative system is Window 98. It works with my
> php scripts but, when I try to pass variables to a php from
> another file or from the browser, php doesn't recognise the variable.
>
> For example, with a script like this: test.php
> <html>
>
> <body>
> <?echo $var;?>
> </body>
> </html>
> when I call it from a browser like this:
> test.php?var=hello
> I get a blank screen. I have tried this script in other php
> servers and it works correctly. So maybe I have to load a
> specific module or parameter. Could somebody help me ?
>
> Thanks.
>
> Sandra
>
Sandra
From v4.2.x register_globals is switched off by default ... use $_GET['var']
in this case
http://www.php.net/manual/en/security.registerglobals.php
Rich