logs directry is 777 OK, but log.txt are :
--w--wx-wT 1 apache apache 0 2008-01-13 20:22 logs.txt*
I correct premission of logs.txt, then it worked! but I clean logs again, that probrlem has occurred.
The following is corrected and this came to work, because the chmod function has recognized the single quotation mark as a character string.
in /administrator/tools/lrecorder/recorder.class.php
@@ -164,7 +164,7 @@
function deleteLogs() {
global $fmanager;
$file = $fmanager->PathName($this->recBase.'logs/').'logs.txt';
- $fmanager->spChmod($file, '0666');
+ $fmanager->spChmod($file, 0666);
if ($fmanager->writeFile($file, '')) {
return true;
} else { return false; }
@@ -253,7 +253,7 @@
$file = $fmanager->PathName($this->recBase.'logs/').'logs.txt';
if (!is_writable($file)) {
- $fmanager->spChmod($file, '0666');
+ $fmanager->spChmod($file, 0666);
}
if ($fr = @fopen($file, 'r')) {
$buffer = @fread($fr, filesize($file));