AJI大侠 2016-11-11 10:03 采纳率: 0%
浏览 877
已结题

PHP报错fopen(C:\data\live_dem...

我的系统是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

初次使用,请解决
  • 写回答

4条回答 默认 最新

  • devmiao 2016-11-11 15:53
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 chaquopy python 安卓
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 有没有帮写代码做实验仿真的
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥30 vmware exsi重置后登不上
  • ¥15 易盾点选的cb参数怎么解啊
  • ¥15 MATLAB运行显示错误,如何解决?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题