Sabtu, 09 November 2013

PHP Indonesia - Facebook: get visitors ip address in php - Extra Tutorials ...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Microsoft Excel 2010 Training Course

Beginner / Intermediate self-paced online course of Microsoft's spreadsheet application. Enroll for just $99.
From our sponsors
get visitors ip address in php - Extra Tutorials ...
Nov 9th 2013, 21:11, by Mohammed Padela

Mohammed Padela 9:11pm Nov 9
get visitors ip address in php - Extra Tutorials

<?php

$http_client_ip = $_SERVER['HTTP_CLIENT_IP'];
$http_x_forwarded_for = $_SERVER['HTTP_X_FORWARDED_FOR'];
$remote_addr = $_SERVER['REMOTE_ADDR'];

if(!empty($http_client_ip)){
$ip_address = $http_client_ip;
}else if(!empty(http_x_forwarded_for)){
$ip_address = $http_x_forwarded_for;
}else{
$ip_address = $remote_addr;
}

echo $ip_address;
?>

Learn More On

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar