Txt log file |
HI , i create my log file by writing a txt file and write it by :
PHP Code: write_file($this->config->item('file_log'), date('Y-m-d').'-Text to write') HOw can i append rows to text file (without using fopen fwrite ) ? How can i delete the rows with date before 1 month ago ?
@pippuccio76,
What version of CI are you using? You can use the file helper functions - CI3 - ( https://codeigniter.com/userguide3/helpe...write_file ) |
Welcome Guest, Not a member yet? Register Sign In |