mb_substr()

mb_substr($str, $start[, $length = NULL[, $encoding = NULL]]) Parameters: $str (string) – Input string $start (int) – Position of first character $length (int) – Maximum number of characters $encoding (string) – Character set Returns: Portion of $str specified by $start and $length or FALSE on failure Return type: string For more information, please refer to the PHP manual for mb_substr().

Javascript Class

CodeIgniter provides a library to help you with certain common functions that you may want to use with Javascript. Please note that CodeIgniter does not require the jQuery library to run, and that any scripting library will work equally well. The jQuery library is simply presented as a convenience if you choose to use it. Important This library is DEPRECATED and should not be used. It has always been with an ‘experimental’ status and is now no longer supported. Currently only kept for backward

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

lang()

lang($line[, $for = ''[, $attributes = array()]]) Parameters: $line (string) – Language line key $for (string) – HTML “for” attribute (ID of the element we’re creating a label for) $attributes (array) – Any additional HTML attributes Returns: The language line; in an HTML label tag, if the $for parameter is not empty Return type: string This function returns a line of text from a loaded language file with simplified syntax that may be more desirable for view files than CI_Lang::li

is_really_writable()

is_really_writable($file) Parameters: $file (string) – File path Returns: TRUE if the path is writable, FALSE if not Return type: bool is_writable() returns TRUE on Windows servers when you really can’t write to the file as the OS reports to PHP as FALSE only if the read-only attribute is marked. This function determines if a file is actually writable by attempting to write to it first. Generally only recommended on platforms where this information may be unreliable. Example: if (is

is_countable()

is_countable($word) Parameters: $word (string) – Input string Returns: TRUE if the word is countable or FALSE if not Return type: bool Checks if the given word has a plural version. Example: is_countable('equipment'); // Returns FALSE

is_php()

is_php($version) Parameters: $version (string) – Version number Returns: TRUE if the running PHP version is at least the one specified or FALSE if not Return type: bool Determines if the PHP version being used is greater than the supplied version number. Example: if (is_php('5.3')) { $str = quoted_printable_encode($str); } Returns boolean TRUE if the installed version of PHP is equal to or greater than the supplied version number. Returns FALSE if the installed version of P

is_cli()

is_cli() Returns: TRUE if currently running under CLI, FALSE otherwise Return type: bool Returns TRUE if the application is run through the command line and FALSE if not. Note This function checks both if the PHP_SAPI value is ‘cli’ or if the STDIN constant is defined.

Installation Instructions

CodeIgniter is installed in four steps: Unzip the package. Upload the CodeIgniter folders and files to your server. Normally the index.php file will be at your root. Open the application/config/config.php file with a text editor and set your base URL. If you intend to use encryption or sessions, set your encryption key. If you intend to use a database, open the application/config/database.php file with a text editor and set your database settings. If you wish to increase security by hiding th

is_https()

is_https() Returns: TRUE if currently using HTTP-over-SSL, FALSE if not Return type: bool Returns TRUE if a secure (HTTPS) connection is used and FALSE in any other case (including non-HTTP requests).