CI framework source code reading --------- system constant file constants. php file Location :. /application/config/constants. php configuration system constant 1. check and configure these preferences when the file system is working & #20540; the system security framework source code will be added as appropriate. read --------- system constant file constants. php
File Location:./application/config/constants. php
Configure system constants
1. check and configure these preferences when the file system is working.
When the file system is running, these default values will increase the security of the system. However, when the underlying layer of php or apache separately opens a process for each user, the octal value is always correct.
FILE_READ_MODE: file reading mode
FILE_WRITE_MODE: file writing mode
DIR_READ_MODE: Directory reading mode
DIR_WRITE_MODE: Directory writing mode
2. file stream mode
These modes are required when we use fopen ()/popen ().
Define ('fopen _ read', 'RB ');
Define ('fopen _ READ_WRITE ', 'R + B ');
Define ('fopen _ write_create_destructive', 'wb ');
Define ('fopen _ READ_WRITE_CREATE_DESTRUCTIVE ', 'W + B ');
Define ('fopen _ WRITE_CREATE ',' AB ');
Define ('fopen _ READ_WRITE_CREATE ', 'A + B ');
Define ('fopen _ WRITE_CREATE_STRICT ', 'xb ');
Define ('fopen _ READ_WRITE_CREATE_STRICT ', 'x + B ');
File source code: