CI_Xmlrpc::display_error()

display_error() Returns: Error message string Return type: string Returns an error message as a string if your request failed for some reason. echo $this->xmlrpc->display_error();

CI_Xmlrpc

class CI_Xmlrpc initialize([$config = array()]) Parameters: $config (array) – Configuration data Return type: void Initializes the XML-RPC library. Accepts an associative array containing your settings. server($url[, $port = 80[, $proxy = FALSE[, $proxy_port = 8080]]]) Parameters: $url (string) – XML-RPC server URL $port (int) – Server port $proxy (string) – Optional proxy $proxy_port (int) – Proxy listening port Return type: void Sets the URL and port number of the ser

CI_User_agent::version()

version() Returns: Detected browser version or an empty string Return type: string Returns a string containing the version number of the web browser viewing your site.

CI_User_agent::robot()

robot() Returns: Detected robot name or an empty string Return type: string Returns a string containing the name of the robot viewing your site.

CI_User_agent::referrer()

referrer() Returns: Detected referrer or an empty string Return type: string The referrer, if the user agent was referred from another site. Typically you’ll test for this as follows: if ($this->agent->is_referral()) { echo $this->agent->referrer(); }

CI_User_agent::platform()

platform() Returns: Detected operating system or an empty string Return type: string Returns a string containing the platform viewing your site (Linux, Windows, OS X, etc.).

CI_User_agent::parse()

parse($string) Parameters: $string (string) – A custom user-agent string Return type: void Parses a custom user-agent string, different from the one reported by the current visitor.

CI_User_agent::mobile()

mobile() Returns: Detected mobile device brand or an empty string Return type: string Returns a string containing the name of the mobile device viewing your site.

CI_User_agent::languages()

languages() Returns: An array list of accepted languages Return type: array Returns an array of languages supported by the user agent.

CI_User_agent::is_robot()

is_robot([$key = NULL]) Parameters: $key (string) – Optional robot name Returns: TRUE if the user agent is a (specified) robot, FALSE if not Return type: bool Returns TRUE/FALSE (boolean) if the user agent is a known robot. Note The user agent library only contains the most common robot definitions. It is not a complete list of bots. There are hundreds of them so searching for each one would not be very efficient. If you find that some bots that commonly visit your site are missing