Re: a problem.
| From: | Michael Davey | Date: | Sun, 02 Jun 2002 12:32:33 +0000 |
| Subject: | Re: a problem. | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14043@lists.php.net to get a copy of this message | ||
1. Try to use a more descriptive subject - everyone has problems! We need
to know the specific problem you need help with.
> It's my second time when I install PHP on Win XP Pro useing IIS
WebServices.
> The first time
> all was Ok. I use the CGI version of PHP (php.exe). So, the problem is
that
> when i type
> http://localhost/php/myscript.php?var=something
>
> PHP return error that $var is undefined variable.
> when I set $var = something in the source code all is working Ok, but it
> doesn't via Web Browser.
2. Which version of PHP are you using? As of version 4.2.0 of PHP the
"register_globals" directive in php.ini defaults to Off. This means that
you would need to either turn this on, or access your variables from the
$_POST or $HTTP_POST_VARS arrays. (The second approach is the recommended
one.)
regards,
Mikey