欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Codeigniter中mkdir創(chuàng)建目錄遇到權(quán)限問題和解決方法

 更新時(shí)間:2014年07月25日 12:07:09   投稿:junjie  
這篇文章主要介紹了Codeigniter中mkdir創(chuàng)建目錄遇到權(quán)限問題和解決方法,需要的朋友可以參考下

今天在用 Codeigniter 上傳文件時(shí)(部署在 Centos),提示如下錯(cuò)誤:

A problem was encountered while attempting to move the uploaded file to the final destination.

相關(guān)代碼:

復(fù)制代碼 代碼如下:

//目錄檢測(cè)
if (!is_dir($cache_path)) mkdir($cache_path, '777');

修改為如下代碼既解決問題:

復(fù)制代碼 代碼如下:

//目錄檢測(cè)
if (!is_dir($cache_path)) mkdir($cache_path, 0777);

相關(guān)文章

最新評(píng)論