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

#1
[eluser]joneslee[/eluser]
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:


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

delete_files($file);

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

#2
[eluser]Crimp[/eluser]
Use unlink() to delete a single file. See the PHP doc.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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