get_file_info()

get_file_info($file[, $returned_values = array('name', 'server_path', 'size', 'date')]) Parameters: $file (string) – File path $returned_values (array) – What type of info to return Returns: An array containing info on the specified file or FALSE on failure Return type: array Given a file and path, returns (optionally) the name, path, size and date modified information attributes for a file. Second parameter allows you to explicitly declare what information you want returned. Valid

set_realpath()

set_realpath($path[, $check_existance = FALSE]) Parameters: $path (string) – Path $check_existance (bool) – Whether to check if the path actually exists Returns: An absolute path Return type: string This function will return a server path without symbolic links or relative directory structures. An optional second argument will cause an error to be triggered if the path cannot be resolved. Examples: $file = '/etc/php5/apache2/php.ini'; echo set_realpath($file); // Prints '/etc/php5/

CI_Benchmark::memory_usage()

memory_usage() Returns: Memory usage info Return type: string Simply returns the {memory_usage} marker. This permits it to be put it anywhere in a template without the memory being calculated until the end. The Output Class will swap the real value for this variable.

CI_Trackback::process()

process($url, $data) Parameters: $url (string) – Target url $data (string) – Raw POST data Returns: TRUE on success, FALSE on failure Return type: bool Opens a socket connection and passes the data to the server, returning TRUE on success and FALSE on failure.

CI_Typography::nl2br_except_pre()

nl2br_except_pre($str) Parameters: $str (string) – Input string Returns: Formatted string Return type: string Converts newlines to <br /> tags unless they appear within <pre> tags. This method is identical to the native PHP nl2br() function, except that it ignores <pre> tags. Usage example: $string = $this->typography->nl2br_except_pre($string);

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_Zip::read_dir()

read_dir($path[, $preserve_filepath = TRUE[, $root_path = NULL]]) Parameters: $path (string) – Path to directory $preserve_filepath (bool) – Whether to maintain the original path $root_path (string) – Part of the path to exclude from the archive directory Returns: TRUE on success, FALSE on failure Return type: bool Permits you to compress a directory (and its contents) that already exists somewhere on your server. Supply a path to the directory and the zip class will recursively r

link_tag()

link_tag([$href = ''[, $rel = 'stylesheet'[, $type = 'text/css'[, $title = ''[, $media = ''[, $index_page = FALSE]]]]]]) Parameters: $href (string) – What are we linking to $rel (string) – Relation type $type (string) – Type of the related document $title (string) – Link title $media (string) – Media type $index_page (bool) – Whether to treat $src as a routed URI string Returns: HTML link tag Return type: string Lets you create HTML <link /> tags. This is useful for style

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',

CI_DB_query_builder::limit()

limit($value[, $offset = 0]) Parameters: $value (int) – Number of rows to limit the results to $offset (int) – Number of rows to skip Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Adds LIMIT and OFFSET clauses to a query.