首頁  >  文章  >  後端開發  >  CI框架系統常數檔constants.php的設定解讀

CI框架系統常數檔constants.php的設定解讀

WBOY
WBOY原創
2016-07-25 08:59:351411瀏覽
  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. ?>

复制代码


陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn