我的系统是windows,写法是
private function getHandle($channelName) {
if($this->_handleArr[$channelName]) {
return $this->_handleArr[$channelName];
}
date_default_timezone_set('PRC');
$nowTime = time();
$logSuffix = date('Ymd', $nowTime);
$handle = fopen($this->_path . '/' . $channelName . $logSuffix . ".log", 'a');
$this->_handleArr[$channelName] = $handle;
return $handle;
}
$handle = fopen($this->_path . '/' . $channelName . $logSuffix . ".log", 'a');这一行报错
fopen(C:\data\live_demo_service\common/..//log//interface_info20161111.log): failed to open stream: No such file or directory in C:\data\live_demo_service\common\MiniLog.php on line 57
初次使用,请解决