PHP Classes

Getting an error while using your class

Recommend this page to a friend!

      PHP Logging Class  >  PHP Logging Class package blog  >  Learning from PHP Log...  >  All threads  >  Getting an error while using your class  >  (Un) Subscribe thread alerts  
Subject:Getting an error while using your class
Summary:Keep getting "failed to open stream: No such file or directory"
Messages:1
Author:Julien Jan
Date:2020-08-25 15:53:47
 

  1. Getting an error while using your class   Reply   Report abuse  
Picture of Julien Jan Julien Jan - 2020-08-25 15:53:47
Hello, I want to use your PHP class but when I try to write in the log files I keep getting this error:
"Warning: fopen(logs/log-2020-08-25.html): failed to open stream: No such file or directory in C:\...\include\log.inc.php on line 196"
and
"The logfile exists, but could not be opened for writing. Check permissions: logs/log-2020-08-25.html" from the class
And line 196 is $this->fh = fopen($this->file, 'w')
I tried to change permissions with chmod and chown but nothing works