P (olizei) A (kademie) | F (aked) A (ccess) L (og)


    

No access permissions to a "real" access.log are required. - Logrotation with a maximum of 100 entries.

"; $emsg .= "How to fix it:
"; $emsg .= "1. also copy faccess.log into same directory"; $emsg .= "2. ~# chown www-data $file
"; $emsg .= "3. ~# chmod 644 $file"; // delete oldest log line if max is reached if( $log = file( $file ) ) { if( count( $log ) >= $max ) $log = array_slice( $log, 1 ); } else { die( $emsg ); } // append log line to file $log[] = $line; if( $add = fopen( $file, 'w' ) ) { fwrite( $add, implode( '', $log ) ); fclose( $add ); } else { die( $emsg ); } ?>