HELP: Could not use File Helper to remove file - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: HELP: Could not use File Helper to remove file (/showthread.php?tid=15385) |
HELP: Could not use File Helper to remove file - El Forum - 02-02-2009 [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'; Just wondering if I am missing any important piece of the formula... HELP: Could not use File Helper to remove file - El Forum - 02-03-2009 [eluser]Crimp[/eluser] Use unlink() to delete a single file. See the PHP doc. |