• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Grabbing host address...

#1
[eluser]internut[/eluser]
Hey all...

Is this the best way:

$this->input->server(HTTP_HOST)

using:

$this->input->ip_address()

to grab IP.

#2
[eluser]slowgary[/eluser]
Whatever happened to good ole'
Code:
$_SERVER['REMOTE_ADDR'];
?

#3
[eluser]Phil Sturgeon[/eluser]
Same thing. The server method of Input just returns false if the key doesnt exist and allows XSS cleaning.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.