Posted By

Biocrash on 07/13/12


Tagged

ci


Versions (?)

MY_file_helper


 / Published in: PHP
 

  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2.  
  3. /* CODEIGNITER */
  4.  
  5. function delete_file($file_to_delete)
  6. {
  7. if(file_exists($file_to_delete))
  8. {
  9. unlink ($file_to_delete);
  10. }
  11. }
  12.  
  13. /* End of file MY_file_helper.php */

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Biocrash on July 13, 2012

CODEIGNITER

You need to login to post a comment.