Advertisement
rav1989

Untitled

Apr 25th, 2011
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2.  
  3. class httpRequest
  4. {
  5.     private $ip;
  6.     private $browser;
  7.  
  8.     public function __construct()
  9.     {
  10.         $this -> ip = $_SERVER['REMOTE_ADDR'];
  11.         $this -> browser = $_SERVER['HTTP_USER_AGENT'];
  12.     } // end __construct();
  13.  
  14.     public function getIp()
  15.     {
  16.         return $this -> ip;
  17.     } // end getIp();
  18.  
  19.     public function getBrowser()
  20.     {
  21.         return $this -> browser;
  22.     } // end getBrowser();
  23. }
  24.  
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement