phpbar.de logo

Mailinglisten-Archive

[php] REMOTE_ADDR

[php] REMOTE_ADDR

Kristian =?iso-8859-1?Q?K=F6hntopp?= kk_(at)_netuse.de
Thu, 02 Sep 1999 20:40:25 +0200


Clemens Staub wrote:
> if ($REMOTE_ADDR == "134.95.183.*") { ...etc

if (preg_match("=134\.95\.183\.\d{1,3}=", $REMOTE_ADDR)) {
  print "found\n";
}

if (ereg("134\.95\.183\.[:digit:]{1,3}", $REMOTE_ADDR)) {
  print "found\n";
}

if (substr($REMOTE_ADDR, 0, 10) == "134.95.183") {
  print "found\n";
}

if (strstr($REMOTE_ADDR, "134.95.183")) {
  print "found\n";
}



-- 
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.shonline.de/ (GPL)


php::bar PHP Wiki   -   Listenarchive