Subdomain Posts
PHP | 3 days ago
PHP | 160 days ago
PHP | 162 days ago
PHP | 197 days ago
PHP | 209 days ago
PHP | 250 days ago
PHP | 432 days ago
PHP | 478 days ago
PHP | 567 days ago
PHP | 567 days ago
Recent Posts
Java | 3 sec ago
C | 12 sec ago
None | 22 sec ago
None | 43 sec ago
PHP | 54 sec ago
PAWN | 54 sec ago
None | 1 min ago
HTML | 2 min ago
PHP | 2 min ago
HTML | 2 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Sam Yong on the 13th of Jan 2009 09:43:32 AM Download | Raw | Embed | Report
  1. function getIP() {
  2. $IP = '';
  3.     if (getenv('HTTP_CLIENT_IP')) {$IP =getenv('HTTP_CLIENT_IP');}
  4.       elseif (getenv('HTTP_X_FORWARDED_FOR')) {$IP =getenv('HTTP_X_FORWARDED_FOR');}
  5.       elseif (getenv('HTTP_X_FORWARDED')) {$IP =getenv('HTTP_X_FORWARDED');}
  6.       elseif (getenv('HTTP_FORWARDED_FOR')) {$IP =getenv('HTTP_FORWARDED_FOR');}
  7.       elseif (getenv('HTTP_FORWARDED')) {$IP = getenv('HTTP_FORWARDED');}
  8.       else {
  9.         $IP = $_SERVER['REMOTE_ADDR'];
  10.     }
  11. return $IP;
  12. }
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: