blob: 3d317f58e9e2edfdde62b17f7eadf09c4845ea68 [file] [log] [blame]
Derek Jones0b59f272008-05-13 04:22:33 +00001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Derek Jones3ad8efe2008-04-04 18:56:04 +00002
3/*
4|--------------------------------------------------------------------------
5| File and Directory Modes
6|--------------------------------------------------------------------------
7|
8| These prefs are used when checking and setting modes when working
9| with the file system. The defaults are fine on servers with proper
10| security, but you may wish (or even need) to change the values in
11| certain environments (Apache running a separate process for each
12| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
13| always be used to set the mode correctly.
14|
15*/
16define('FILE_READ_MODE', 0644);
17define('FILE_WRITE_MODE', 0666);
18define('DIR_READ_MODE', 0755);
19define('DIR_WRITE_MODE', 0777);
20
Derek Jones5f6b5442008-05-05 18:28:27 +000021/*
22|--------------------------------------------------------------------------
23| File Stream Modes
24|--------------------------------------------------------------------------
25|
26| These modes are used when working with fopen()/popen()
27|
28*/
Derek Jones3be20e22008-05-05 20:07:09 +000029
30define('FOPEN_READ', 'rb');
31define('FOPEN_READ_WRITE', 'r+b');
Derek Allard993925b2008-08-21 12:43:31 +000032define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
Derek Jones3be20e22008-05-05 20:07:09 +000033define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
34define('FOPEN_WRITE_CREATE', 'ab');
35define('FOPEN_READ_WRITE_CREATE', 'a+b');
36define('FOPEN_WRITE_CREATE_STRICT', 'xb');
37define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
38
Derek Jones0b59f272008-05-13 04:22:33 +000039
40/* End of file constants.php */
Derek Jonesa3ffbbb2008-05-11 18:18:29 +000041/* Location: ./system/application/config/constants.php */