1
使用谷歌API客戶端爲PHP獲取一些數據,我也遇到過下面的錯誤,我似乎無法找到任何有效的解決方案爲止。谷歌API客戶端的PHP - MKDIR():權限被拒絕
mkdir(): Permission denied
$storageDir = $this->path . '/' . substr(md5($file), 0, 2);
if ($forWrite && ! is_dir($storageDir)) {
if (! mkdir($storageDir, 0755, true)) {
throw new Google_Cache_Exception("Could not create storage directory: $storageDir");
}
我檢查了權限,用戶和組。一切都很好,但我不知道有什麼問題。 任何想法爲什麼發生這種情況?