Hi,
I know there are many posts about unlink() not working but ive tried everything and I cant get it to work.
This is my command:
$dir has the directory location
$item is the name of the file
unlink($dir.$item);
I can create directories and files fine, but when I come to delete them it wont do it. Unlink always returns false.
Im using IIS 6 w/ PHP5 on Windows Server 2003. So I tried the system( del \" \" ) command and that didnt work either.
Im kinda new to IIS so im not sure how to check/set the permissions for the PHP script to delete a file, but do I even need to since I was able to create directories/files already?
The file im trying to delete is a folder up from the script so the path does contain a ".." to go back a directory. Does unlink() recognize this?
Thanks
I know there are many posts about unlink() not working but ive tried everything and I cant get it to work.
This is my command:
$dir has the directory location
$item is the name of the file
unlink($dir.$item);
I can create directories and files fine, but when I come to delete them it wont do it. Unlink always returns false.
Im using IIS 6 w/ PHP5 on Windows Server 2003. So I tried the system( del \" \" ) command and that didnt work either.
Im kinda new to IIS so im not sure how to check/set the permissions for the PHP script to delete a file, but do I even need to since I was able to create directories/files already?
The file im trying to delete is a folder up from the script so the path does contain a ".." to go back a directory. Does unlink() recognize this?
Thanks
Comment