• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP: Could not use File Helper to remove file

Hi everyone,
I am very new to PHP and CI so please be gentle if my question might sound clumsy. I couldn't remove a file on my server located at /sample/test.txt (owned by apache:apache and octal is 764). Below is my code:

$file = './sample/test.txt';


Just wondering if I am missing any important piece of the formula...

Use unlink() to delete a single file. See the PHP doc.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.