ציטוט:
נכתב במקור על ידי mlnn
PHP קוד:
$targetAddr = "123.123..*..*"; //yes is two dots
//this code will match any class of 123.123.x.x,
//you can also do "123.123.123..*" to do anything that is 123.123.123.x
if (ereg($targetAddr, $_SERVER['REMOTE_ADDR'])) {
//remote address match, do something or don't do anything
} else {
//do whatever you want to address that doesn't match
}
יוצר: saidev
בפעם הבאה, GoogleIt
|
תודה אחי וכמו שאמרתי בפורום תיכנות אמרו לי לבוא לפה