Re: If code not working?
| From: | Paul Menard | Date: | Wed, 04 Jan 2006 20:26:10 +0000 |
| Subject: | Re: If code not working? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-26613@lists.php.net to get a copy of this message | ||
Um. What is the '0' for?
if(
($_SERVER["REMOTE_ADDR"]=="x.x.x.x")||
($_SERVER["REMOTE_ADDR"]=="y.y.y.y")||
0 <-- This should not be here.
)
----- Original Message ----
From: Christopher Malton <admin@cjsoftuk.dyndns.org>
To: php-windows@lists.php.net
Sent: Wednesday, January 04, 2006 13:00:24
Subject: [PHP-WIN] If code not working?
To all,
I appear to have a problem with my If statement. No error is
presented to me, but does anyone see what is wrong. IP addresses masked
for safety & security.
Code as follows:
<?php
if(
($_SERVER["REMOTE_ADDR"]=="x.x.x.x")||
($_SERVER["REMOTE_ADDR"]=="y.y.y.y")||
0
){
header("Location: /access_disabled.php");
exit();
}
?>
Chris
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php