Im pulling my hair out over somthing that I though would just take a moment.
I am just trying to delete a non-empty folder by unix commands through php or though running through with an array and deleteing the files than the dir.
now I cannot get any of it to work.
my biggest stump is somthing as simple as this..
$path = "AnalysisData/test.html";
$path2 = "AnalysisData/testDir/test.html";
unlink($path)
or die("Couldn't DELETE path FILE");
unlink($path2)
or die("Couldn't DELETE path2 FILE");
I get an error message for path2 "Couldn't DELETE path2 FILE"
but path one gets deleted fine!!!!
This is a simple peice of code. I dont get it at all.
Please help,
Thanks,
Nathan