欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

CI框架系统常量文件constants.php的配置解读

程序员文章站 2022-05-11 09:16:46
...
  1. /*

  2. |--------------------------------------------------------------------------
  3. | File and Directory Modes
  4. |--------------------------------------------------------------------------
  5. */
  6. define('FILE_READ_MODE', 0644);
  7. define('FILE_WRITE_MODE', 0666);
  8. define('DIR_READ_MODE', 0755);
  9. define('DIR_WRITE_MODE', 0777);
  10. /*

  11. |-------------------------------------
  12. | File Stream Modes 文件流模式
  13. |-------------------------------------
  14. | These modes are used when working with fopen()/popen()

  15. */

  16. define('FOPEN_READ', 'rb');
  17. define('FOPEN_READ_WRITE', 'r+b');
  18. define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
  19. define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
  20. define('FOPEN_WRITE_CREATE', 'ab');
  21. define('FOPEN_READ_WRITE_CREATE', 'a+b');
  22. define('FOPEN_WRITE_CREATE_STRICT', 'xb');
  23. define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
  24. /* End of file constants.php */

  25. /* Location: ./application/config/constants.php */
  26. ?>
复制代码