Codeigniter Write_file Question
- by Brad
I am writing to a txt file to back up certain posts. Here is my simple code
$this->path = APPPATH . "post_backups/";
$string = $this->input->post('post');
$post_title = $this->input->post('post_title');
$this->file = $this->path . $post_title."txt";
write_file($this->file, $string);
$this->index(); …