Welcome Guest, Not a member yet? Register   Sign In
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.




Theme © iAndrew 2016 - Forum software by © MyBB