|
 |
|
จะโชว์อย่างไร IP Address , Computer Name คือผมทำเป็นใช้ภายในองค์กรครับแล้วทีนี้ต้องการอยากจะทราบว่าเครื่องใหนส่งข้อความมา |
|
 |
|
|
 |
 |
|
<?php
echo GetHostByName($REMOTE_ADDR); // IP
echo gethostbyaddr($_SERVER['REMOTE_ADDR']); // ชื่อเครื่อง
?>
|
 |
 |
 |
 |
Date :
2009-09-10 10:57:35 |
By :
adaaugusta |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แจ่มเลยครับคุณ adaaugusta
|
 |
 |
 |
 |
Date :
2009-09-10 11:49:14 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณครับ
เด๋วลองก่อน
|
 |
 |
 |
 |
Date :
2009-09-10 16:29:55 |
By :
killnight |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แร่ม
|
 |
 |
 |
 |
Date :
2009-09-10 16:47:11 |
By :
nilas |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แจ่มคับ 
|
 |
 |
 |
 |
Date :
2009-09-12 23:55:29 |
By :
nakait20 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
สุดๆ
|
 |
 |
 |
 |
Date :
2009-09-13 00:57:13 |
By :
tcc |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<?php
//find user ip
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$userip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} elseif (isset($_SERVER['HTTP_CLIENT_IP'])) {
$userip = $_SERVER['HTTP_CLIENT_IP'];
} else {
$userip = $_SERVER['REMOTE_ADDR'];
}
?>
|
 |
 |
 |
 |
Date :
2009-09-13 01:53:47 |
By :
mr.v |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณเช่นกาน ได้ความรู้ใหม่ lv up
|
 |
 |
 |
 |
Date :
2009-09-14 11:58:51 |
By :
ohmakung |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แล้วถ้าเป็น hotmail แล้วเราไปเช็ค ip address เวลาส่งเมลล์มาได้แล้ว แล้วทำยังไงถึงจะรู้ว่าเป็น ip เครื่องคอมไหน ทำยังไงค่ะ พอดีว่าโดนรุกรานอยู่ค่ะ
|
 |
 |
 |
 |
Date :
2009-11-08 20:32:08 |
By :
maruko |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|

|
 |
 |
 |
 |
Date :
2009-11-08 21:46:53 |
By :
tingtongkub |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 01
|