un4saken said:Actually is it very easy.
PHP:<?php unlink('error_log'); ?>
name it errorlog-delete.php or something like that, and run it every hour by a cronjob. I use this code too.
Thank you un4. It really help me alot. :good:un4saken said:It works only within its directory. If you want to delete another file in a sub directory just move the .php file there too and run it.
un4saken said:Actually is it very easy.
PHP:<?php unlink('error_log'); ?>
name it errorlog-delete.php or something like that, and run it every hour by a cronjob. I use this code too.
Good idea too. Thanks.ogah said:un4saken said:Actually is it very easy.
PHP:<?php unlink('error_log'); ?>
name it errorlog-delete.php or something like that, and run it every hour by a cronjob. I use this code too.
or put in index.php so error_log will deleted each visitor open your webpage