当前位置:Gxlcms > PHP教程 > CI框架系统常量文件constants.php的配置解读

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

时间:2021-07-01 10:21:17 帮助过:78人阅读

  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. ?>

人气教程排行