<?
function SafIP() {
if (getenv('HTTP_CLIENT_IP')) {
$ip = getenv('HTTP_CLIENT_IP');
}else if (getenv('HTTP_X_FORWARDED_FOR')) {
$ip = getenv('HTTP_X_FORWARDED_FOR');
}else if (getenv('HTTP_X_FORWARDED')) {
$ip = getenv('HTTP_X_FORWARDED');
}else if (getenv('HTTP_FORWARDED_FOR')) {
$ip = getenv('HTTP_FORWARDED_FOR');
}else if (getenv('HTTP_FORWARDED')) {
$ip = getenv('HTTP_FORWARDED');
}else{
$ip = $_SERVER['REMOTE_ADDR'];
}
return $ip;
}
?>
Blogger templates
Blogger news
Blogroll
Archives
-
▼
2013
(219)
-
▼
December
(26)
- Worldspan GDS
- VBA reading from a text file
- SOAP and PHP
- Constants in PHP
- ListAppend
- Simple File Upload
- Credit Repair - It's All About Saving Money
- PHP do-while loop
- Download Appropriate Packages.
- Checking string size
- Contoh Perubahan Proses Bisnis/Sosial Akibat Tekno...
- GtkCList with sort support
- Email validation with PHP
- connect with database in php with mysql
- Send text and lenth to output for HTML
- Quiz #1 Finished
- PHP Security by Example
- No title
- php arrays
- PHP Arrays
- PHP for loop
- PHP Web Application Development India | Custom Web...
- PHP Constants
- Cerating Firefox Extension
- Security
- Get the visitor IP anyhow
-
▼
December
(26)