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 .= "~# touch $file
"; $emsg .= "~# chown $user $file
"; $emsg .= "~# 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 ); } ?>