config.php

Go to the documentation of this file.
00001 <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
00002 
00003 /*
00004 |--------------------------------------------------------------------------
00005 | Base Site URL
00006 |--------------------------------------------------------------------------
00007 |
00008 | URL to your CodeIgniter root. Typically this will be your base URL,
00009 | WITH a trailing slash:
00010 |
00011 |       http://example.com/
00012 |
00013 */
00014 $config['base_url']     = "http://127.0.0.1/CodeIgniter/";
00015 
00016 /*
00017 |--------------------------------------------------------------------------
00018 | Index File
00019 |--------------------------------------------------------------------------
00020 |
00021 | Typically this will be your index.php file, unless you've renamed it to
00022 | something else. If you are using mod_rewrite to remove the page set this
00023 | variable so that it is blank.
00024 |
00025 */
00026 $config['index_page'] = "index.php";
00027 
00028 /*
00029 |--------------------------------------------------------------------------
00030 | URI PROTOCOL
00031 |--------------------------------------------------------------------------
00032 |
00033 | This item determines which server global should be used to retrieve the
00034 | URI string.  The default setting of "AUTO" works for most servers.
00035 | If your links do not seem to work, try one of the other delicious flavors:
00036 |
00037 | 'AUTO'                        Default - auto detects
00038 | 'PATH_INFO'           Uses the PATH_INFO
00039 | 'QUERY_STRING'        Uses the QUERY_STRING
00040 | 'REQUEST_URI'         Uses the REQUEST_URI
00041 | 'ORIG_PATH_INFO'      Uses the ORIG_PATH_INFO
00042 |
00043 */
00044 $config['uri_protocol'] = "AUTO";
00045 
00046 /*
00047 |--------------------------------------------------------------------------
00048 | URL suffix
00049 |--------------------------------------------------------------------------
00050 |
00051 | This option allows you to add a suffix to all URLs generated by CodeIgniter.
00052 | For more information please see the user guide:
00053 |
00054 | http://codeigniter.com/user_guide/general/urls.html
00055 */
00056 
00057 $config['url_suffix'] = "";
00058 
00059 /*
00060 |--------------------------------------------------------------------------
00061 | Default Language
00062 |--------------------------------------------------------------------------
00063 |
00064 | This determines which set of language files should be used. Make sure
00065 | there is an available translation if you intend to use something other
00066 | than english.
00067 |
00068 */
00069 $config['language']     = "english";
00070 
00071 /*
00072 |--------------------------------------------------------------------------
00073 | Default Character Set
00074 |--------------------------------------------------------------------------
00075 |
00076 | This determines which character set is used by default in various methods
00077 | that require a character set to be provided.
00078 |
00079 */
00080 $config['charset'] = "UTF-8";
00081 
00082 /*
00083 |--------------------------------------------------------------------------
00084 | Enable/Disable System Hooks
00085 |--------------------------------------------------------------------------
00086 |
00087 | If you would like to use the "hooks" feature you must enable it by
00088 | setting this variable to TRUE (boolean).  See the user guide for details.
00089 |
00090 */
00091 $config['enable_hooks'] = FALSE;
00092 
00093 
00094 /*
00095 |--------------------------------------------------------------------------
00096 | Class Extension Prefix
00097 |--------------------------------------------------------------------------
00098 |
00099 | This item allows you to set the filename/classname prefix when extending
00100 | native libraries.  For more information please see the user guide:
00101 |
00102 | http://codeigniter.com/user_guide/general/core_classes.html
00103 | http://codeigniter.com/user_guide/general/creating_libraries.html
00104 |
00105 */
00106 $config['subclass_prefix'] = 'MY_';
00107 
00108 
00109 /*
00110 |--------------------------------------------------------------------------
00111 | Allowed URL Characters
00112 |--------------------------------------------------------------------------
00113 |
00114 | This lets you specify with a regular expression which characters are permitted
00115 | within your URLs.  When someone tries to submit a URL with disallowed
00116 | characters they will get a warning message.
00117 |
00118 | As a security measure you are STRONGLY encouraged to restrict URLs to
00119 | as few characters as possible.  By default only these are allowed: a-z 0-9~%.:_-
00120 |
00121 | Leave blank to allow all characters -- but only if you are insane.
00122 |
00123 | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
00124 |
00125 */
00126 $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
00127 
00128 
00129 /*
00130 |--------------------------------------------------------------------------
00131 | Enable Query Strings
00132 |--------------------------------------------------------------------------
00133 |
00134 | By default CodeIgniter uses search-engine friendly segment based URLs:
00135 | example.com/who/what/where/
00136 |
00137 | You can optionally enable standard query string based URLs:
00138 | example.com?who=me&what=something&where=here
00139 |
00140 | Options are: TRUE or FALSE (boolean)
00141 |
00142 | The other items let you set the query string "words" that will
00143 | invoke your controllers and its functions:
00144 | example.com/index.php?c=controller&m=function
00145 |
00146 | Please note that some of the helpers won't work as expected when
00147 | this feature is enabled, since CodeIgniter is designed primarily to
00148 | use segment based URLs.
00149 |
00150 */
00151 $config['enable_query_strings'] = FALSE;
00152 $config['directory_trigger'] = 'd';      // experimental not currently in use
00153 $config['controller_trigger'] = 'c';
00154 $config['function_trigger'] = 'm';
00155 
00156 /*
00157 |--------------------------------------------------------------------------
00158 | Error Logging Threshold
00159 |--------------------------------------------------------------------------
00160 |
00161 | If you have enabled error logging, you can set an error threshold to 
00162 | determine what gets logged. Threshold options are:
00163 | You can enable error logging by setting a threshold over zero. The
00164 | threshold determines what gets logged. Threshold options are:
00165 |
00166 |       0 = Disables logging, Error logging TURNED OFF
00167 |       1 = Error Messages (including PHP errors)
00168 |       2 = Debug Messages
00169 |       3 = Informational Messages
00170 |       4 = All Messages
00171 |
00172 | For a live site you'll usually only enable Errors (1) to be logged otherwise
00173 | your log files will fill up very fast.
00174 |
00175 */
00176 $config['log_threshold'] = 0;
00177 
00178 /*
00179 |--------------------------------------------------------------------------
00180 | Error Logging Directory Path
00181 |--------------------------------------------------------------------------
00182 |
00183 | Leave this BLANK unless you would like to set something other than the default
00184 | system/logs/ folder.  Use a full server path with trailing slash.
00185 |
00186 */
00187 $config['log_path'] = '';
00188 
00189 /*
00190 |--------------------------------------------------------------------------
00191 | Date Format for Logs
00192 |--------------------------------------------------------------------------
00193 |
00194 | Each item that is logged has an associated date. You can use PHP date
00195 | codes to set your own date formatting
00196 |
00197 */
00198 $config['log_date_format'] = 'Y-m-d H:i:s';
00199 
00200 /*
00201 |--------------------------------------------------------------------------
00202 | Cache Directory Path
00203 |--------------------------------------------------------------------------
00204 |
00205 | Leave this BLANK unless you would like to set something other than the default
00206 | system/cache/ folder.  Use a full server path with trailing slash.
00207 |
00208 */
00209 $config['cache_path'] = '';
00210 
00211 /*
00212 |--------------------------------------------------------------------------
00213 | Encryption Key
00214 |--------------------------------------------------------------------------
00215 |
00216 | If you use the Encryption class or the Sessions class with encryption
00217 | enabled you MUST set an encryption key.  See the user guide for info.
00218 |
00219 */
00220 $config['encryption_key'] = "";
00221 
00222 /*
00223 |--------------------------------------------------------------------------
00224 | Session Variables
00225 |--------------------------------------------------------------------------
00226 |
00227 | 'session_cookie_name' = the name you want for the cookie
00228 | 'encrypt_sess_cookie' = TRUE/FALSE (boolean).  Whether to encrypt the cookie
00229 | 'session_expiration'  = the number of SECONDS you want the session to last.
00230 |  by default sessions last 7200 seconds (two hours).  Set to zero for no expiration.
00231 | 'time_to_update'              = how many seconds between CI refreshing Session Information
00232 |
00233 */
00234 $config['sess_cookie_name']             = 'ci_session';
00235 $config['sess_expiration']              = 7200;
00236 $config['sess_encrypt_cookie']  = FALSE;
00237 $config['sess_use_database']    = FALSE;
00238 $config['sess_table_name']              = 'ci_sessions';
00239 $config['sess_match_ip']                = FALSE;
00240 $config['sess_match_useragent'] = TRUE;
00241 $config['sess_time_to_update']          = 300;
00242 
00243 /*
00244 |--------------------------------------------------------------------------
00245 | Cookie Related Variables
00246 |--------------------------------------------------------------------------
00247 |
00248 | 'cookie_prefix' = Set a prefix if you need to avoid collisions
00249 | 'cookie_domain' = Set to .your-domain.com for site-wide cookies
00250 | 'cookie_path'   =  Typically will be a forward slash
00251 |
00252 */
00253 $config['cookie_prefix']        = "";
00254 $config['cookie_domain']        = "";
00255 $config['cookie_path']          = "/";
00256 
00257 /*
00258 |--------------------------------------------------------------------------
00259 | Global XSS Filtering
00260 |--------------------------------------------------------------------------
00261 |
00262 | Determines whether the XSS filter is always active when GET, POST or
00263 | COOKIE data is encountered
00264 |
00265 */
00266 $config['global_xss_filtering'] = FALSE;
00267 
00268 /*
00269 |--------------------------------------------------------------------------
00270 | Output Compression
00271 |--------------------------------------------------------------------------
00272 |
00273 | Enables Gzip output compression for faster page loads.  When enabled,
00274 | the output class will test whether your server supports Gzip.
00275 | Even if it does, however, not all browsers support compression
00276 | so enable only if you are reasonably sure your visitors can handle it.
00277 |
00278 | VERY IMPORTANT:  If you are getting a blank page when compression is enabled it
00279 | means you are prematurely outputting something to your browser. It could
00280 | even be a line of whitespace at the end of one of your scripts.  For
00281 | compression to work, nothing can be sent before the output buffer is called
00282 | by the output class.  Do not "echo" any values with compression enabled.
00283 |
00284 */
00285 $config['compress_output'] = FALSE;
00286 
00287 /*
00288 |--------------------------------------------------------------------------
00289 | Master Time Reference
00290 |--------------------------------------------------------------------------
00291 |
00292 | Options are "local" or "gmt".  This pref tells the system whether to use
00293 | your server's local time as the master "now" reference, or convert it to
00294 | GMT.  See the "date helper" page of the user guide for information
00295 | regarding date handling.
00296 |
00297 */
00298 $config['time_reference'] = 'local';
00299 
00300 
00301 /*
00302 |--------------------------------------------------------------------------
00303 | Rewrite PHP Short Tags
00304 |--------------------------------------------------------------------------
00305 |
00306 | If your PHP installation does not have short tag support enabled CI
00307 | can rewrite the tags on-the-fly, enabling you to utilize that syntax
00308 | in your view files.  Options are TRUE or FALSE (boolean)
00309 |
00310 */
00311 $config['rewrite_short_tags'] = FALSE;
00312 
00313 
00314 
00315 /* End of file config.php */
00316 /* Location: ./system/application/config/config.php */