diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-05-05 20:28:27 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-05-05 20:28:27 +0200 |
commit | 5f6b5442e5a3d7fa5cf6c047ed716b82946629a2 (patch) | |
tree | 1b8892a6a3779406067e1e857f52d9e1f34b9bc3 /system/application/config | |
parent | 7327499064ae165468c7440f8571c3e570b58a0b (diff) |
adding some fopen constants
Diffstat (limited to 'system/application/config')
-rw-r--r-- | system/application/config/constants.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/system/application/config/constants.php b/system/application/config/constants.php index ace3f8b9d..3909941ec 100644 --- a/system/application/config/constants.php +++ b/system/application/config/constants.php @@ -18,4 +18,20 @@ define('FILE_WRITE_MODE', 0666); define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);
+/*
+|--------------------------------------------------------------------------
+| File Stream Modes
+|--------------------------------------------------------------------------
+|
+| These modes are used when working with fopen()/popen()
+|
+*/
+define('FOPEN_READ_BOF', 'rb');
+define('FOPEN_READ_WRITE_BOF', 'r+b');
+define('FOPEN_WRITE_CREATE_BOF', 'wb'); // truncates existing file data, use with care
+define('FOPEN_READ_WRITE_CREATE_BOF', 'w+b'); // truncates existing file data, use with care
+define('FOPEN_WRITE_CREATE_EOF', 'ab');
+define('FOPEN_READ_WRITE_CREATE_EOF', 'a+b');
+define('FOPEN_WRITE_CREATE_STRICT', 'xb');
+define('FOPEN_READ_WRITE_CREATE_STRICT','x+b');
?>
\ No newline at end of file |