Re: URL issue -- http://server/page.php?machine.network=one not working
| From: | Rasmus Lerdorf | Date: | Fri, 28 Jun 2002 18:25:30 +0000 |
| Subject: | Re: URL issue -- http://server/page.php?machine.network=one not working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104404@lists.php.net to get a copy of this message | ||
I am not sure I understand the question. Periods are not allowed in
variable names, so they are changed to underscores. Periods in the value
part are left alone.
-Rasmus
On Fri, 28 Jun 2002, Glenn MacGregor wrote:
> Hi All,
>
> I am having a problem with php4 and a get url. For instance the URL:
> http://server/page.php?test1.test.com=debug.
>
> I have a script which does a foreach through all the _GET vars:
> foreach ($_GET as $var => $value)
> This peice works fine except that when the var (name) has a period in it
> that is changed to a _. If the value has a period it is not changed to _.
>
> I have snooped the packets and it is sent to the server as '.' Is this a
> server (apache) issue or a php issue. Is there anything I can do.
>
> Thanks
>
> Glenn
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>