Deleting a File using php/codeigniter
问题 I would like to delete a file that is found in my localhost. localhost/project/folder/file_to_delete I'm using codeigniter for this. I would like to use the unlink() function in php but I really can't understand how to use it. 回答1: you can use the "file helper" in codeigniter. http://codeigniter.com/user_guide/helpers/file_helper.html and like this : $this->load->helper("file"); delete_files($path); Late Edit: delete_files method uses a path to wipe out all of its contents via unlink() and