darekw1
04-16-2008, 06:51 AM
I'm trying to delete files from my directory but have problems.
I assume it has something to do with permission but not sure.
Here is the code:
$file = unlink("/index.html");
if (! unlink ($file)) {
echo ("Couldn't delete file");
} else {
echo ("Removed $filepath");
Please advise where I go wrong.
I assume it has something to do with permission but not sure.
Here is the code:
$file = unlink("/index.html");
if (! unlink ($file)) {
echo ("Couldn't delete file");
} else {
echo ("Removed $filepath");
Please advise where I go wrong.