CI_Input::server()

server($index[, $xss_clean = NULL])

Parameters:
  • $index (mixed) – Value name
  • $xss_clean (bool) – Whether to apply XSS filtering
Returns:

$_SERVER item value if found, NULL if not

Return type:

mixed

This method is identical to the post(), get() and cookie() methods, only it fetches server data ($_SERVER):

$this->input->server('some_data');

To return an array of multiple $_SERVER values, pass all the required keys as an array.

$this->input->server(array('SERVER_PROTOCOL', 'REQUEST_URI'));
doc_CodeIgniter
2016-10-15 16:31:40
Comments
Leave a Comment

Please login to continue.