1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
\r
4 |--------------------------------------------------------------------------
\r
5 | File and Directory Modes
\r
6 |--------------------------------------------------------------------------
\r
8 | These prefs are used when checking and setting modes when working
\r
9 | with the file system. The defaults are fine on servers with proper
\r
10 | security, but you may wish (or even need) to change the values in
\r
11 | certain environments (Apache running a separate process for each
\r
12 | user, PHP under CGI with Apache suEXEC, etc.). Octal values should
\r
13 | always be used to set the mode correctly.
\r
16 define('FILE_READ_MODE', 0644);
\r
17 define('FILE_WRITE_MODE', 0666);
\r
18 define('DIR_READ_MODE', 0755);
\r
19 define('DIR_WRITE_MODE', 0777);
\r
22 |--------------------------------------------------------------------------
\r
24 |--------------------------------------------------------------------------
\r
26 | These modes are used when working with fopen()/popen()
\r
30 define('FOPEN_READ', 'rb');
\r
31 define('FOPEN_READ_WRITE', 'r+b');
\r
32 define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
\r
33 define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
\r
34 define('FOPEN_WRITE_CREATE', 'ab');
\r
35 define('FOPEN_READ_WRITE_CREATE', 'a+b');
\r
36 define('FOPEN_WRITE_CREATE_STRICT', 'xb');
\r
37 define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
\r
40 /* End of file constants.php */
\r
41 /* Location: ./system/application/config/constants.php */