|
|
|
โค้ดแบบนี้คือโค้ดอะไรครับแล้วมันใช้เช็คอะไรครับ REMOTE_ADDR |
|
|
|
|
|
|
|
Array
(
[HTTP_HOST] => www.iamtrend.com
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_ACCEPT_LANGUAGE] => th-th,th;q=0.8,en-us;q=0.6,en-gb;q=0.4,en;q=0.2
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
[HTTP_CONNECTION] => keep-alive
[PATH] => /sbin:/usr/sbin:/bin:/usr/bin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache/2.2.17 (Unix) DAV/2 mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 PHP/5.2.17
[SERVER_NAME] => www.iamtrend.com
[SERVER_ADDR] => 10.6.196.10
[SERVER_PORT] => 80
[REMOTE_ADDR] => 10.6.100.10
[DOCUMENT_ROOT] => /app/iappmin
[SERVER_ADMIN] => root@localhost
[SCRIPT_FILENAME] => /app/iappmin/iamtrencornjob/test2.php
[REMOTE_PORT] => 57054
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /iamtrencornjob/test2.php
[SCRIPT_NAME] => /iamtrencornjob/test2.php
[PHP_SELF] => /iamtrencornjob/test2.php
[REQUEST_TIME] => 1320995617
)
Tag : PHP
|
|
|
|
|
|
Date :
2011-11-11 14:49:30 |
By :
teedesign |
View :
2221 |
Reply :
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ip ครับ
|
|
|
|
|
Date :
2011-11-11 14:51:09 |
By :
Dragons_first |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ถ้าจะเช็คต้องเขียนแสดง echo ยังไงอ่ะครับวานท่าน อ้นคุง เขียนแสดงให้ดูได้ไหมครับผ๋ม
ขอบคุณครับ
|
|
|
|
|
Date :
2011-11-11 14:53:22 |
By :
teedesign |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
$ip=getenv(REMOTE_ADDR);
print "IP Address is $ip";
|
|
|
|
|
Date :
2011-11-11 16:36:53 |
By :
grandraftz |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|