Re: Re: set multiple variables
| From: | dirk | Date: | Sun, 03 Oct 2004 12:45:29 +0000 |
| Subject: | Re: Re: set multiple variables | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198535@lists.php.net to get a copy of this message | ||
$REMOTE_ADDR == "212.3.54.65" || $REMOTE_ADDR == "212.3.54.66" is correct
On Sun, 3 Oct 2004 12:39:11 +0100, Graham Cossey <graham@cossey.plus.com> wrote:
>
> ||= OR
> && = AND
>
>
>
> -----Original Message-----
> From: argesson [mailto:mx@hot.ee]
> Sent: 03 October 2004 11:30
> To: php-general@lists.php.net
> Subject: [PHP] Re: set multiple variables
>
> Daniel Schierbeck wrote:
> > Argesson wrote:
> >
> >> try this:
> >> if ($REMOTE_ADDR == "212.3.54.65" && $REMOTE_ADDR ==
> >> "212.3.54.66")
> >>
> >> Joe Szilagyi wrote:
> >>
> >>> Hi, I have this working:
> >>>
> >>>
> >>> if ($REMOTE_ADDR == "212.3.54.65") {
> >>> header("Location:
> >>> http://www.google.com/search?&q=huzzah");
> >>> Redirect browser
> >>> exit;
> >>> }
> >>>
> >>>
> >>> But I want to specify multiple IPs. What's the best recommended way for
> >>> doing that?
> >>>
> >>>
> >>> thanks
> >>> Joe
> >
> >
> > Make that:
> > if ($REMOTE_ADDR == "212.3.54.65" || $REMOTE_ADDR == "212.3.54.66")
>
> isn't the || same as && ? Or I missed something?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Try http://einx.dyndns.org