constants.php

Go to the documentation of this file.
00001 <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
00002 
00003 /*
00004 |--------------------------------------------------------------------------
00005 | File and Directory Modes
00006 |--------------------------------------------------------------------------
00007 |
00008 | These prefs are used when checking and setting modes when working
00009 | with the file system.  The defaults are fine on servers with proper
00010 | security, but you may wish (or even need) to change the values in
00011 | certain environments (Apache running a separate process for each
00012 | user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
00013 | always be used to set the mode correctly.
00014 |
00015 */
00016 define('FILE_READ_MODE', 0644);
00017 define('FILE_WRITE_MODE', 0666);
00018 define('DIR_READ_MODE', 0755);
00019 define('DIR_WRITE_MODE', 0777);
00020 
00021 /*
00022 |--------------------------------------------------------------------------
00023 | File Stream Modes
00024 |--------------------------------------------------------------------------
00025 |
00026 | These modes are used when working with fopen()/popen()
00027 |
00028 */
00029 
00030 define('FOPEN_READ',                                                    'rb');
00031 define('FOPEN_READ_WRITE',                                              'r+b');
00032 define('FOPEN_WRITE_CREATE_DESTRUCTIVE',                'wb');  // truncates existing file data, use with care
00033 define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',   'w+b'); // truncates existing file data, use with care
00034 define('FOPEN_WRITE_CREATE',                                    'ab');
00035 define('FOPEN_READ_WRITE_CREATE',                               'a+b');
00036 define('FOPEN_WRITE_CREATE_STRICT',                     'xb');
00037 define('FOPEN_READ_WRITE_CREATE_STRICT',                'x+b');
00038 
00039 
00040 /* End of file constants.php */
00041 /* Location: ./system/application/config/constants.php */