Re: Apache2 and php-4.3.2RC2-Win32
| From: | Per Lundberg | Date: | Mon, 12 May 2003 09:23:32 +0000 |
| Subject: | Re: Apache2 and php-4.3.2RC2-Win32 | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-19860@lists.php.net to get a copy of this message | ||
On Mon, 2003-05-12 at 05:03, JBrawner@silenus.com wrote:
> In the php file, the first thing that happens is determine the value of
> 'do'. For some reason, the value of $do is always empty. If I put this on
> an Apache 1.3 server, it works fine. Any ideas????
>
> Here is the code in the beginning of the php file...
>
> <?php
>
> echo "do = [$do]";
You are passing something like ?do=something into the URL, right? This
is one of the most common cause of problems. The reason your code is
not working is that it relies on deprecated functionality (namely
register_globals=on). If you use $_GET["do"] instead, you'll get the
value of this variable.
Search php.net for register_globals to get more information on this
feature.
--
Best regards,
Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.nobolt.com
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc