View Full Version : Warning: unlink(../template/toto) [function.unlink]: Permission denied in...

Angry Coder
10-29-2003, 10:09 PM

I am using Apache a local server to test my PHP scripts on XP Pro and everything work perfectly. But when I am trying to use copy() and unlink() function I am getting the fallowing permission denied message:

Warning: unlink(../template/toto) [function.unlink]: Permission denied in c:\http\myproject\controlpanel\template.php on line 152

How can I fix that?

Thank you.

10-29-2003, 11:06 PM
providing you have access, you will need to CHMOD the directory to 0777.

Angry Coder
10-29-2003, 11:45 PM
How can I chmod a file on XP Pro?! :)

10-30-2003, 12:14 AM
oops, didnt see that you were using xp pro. :p

umm, is the file read only? i dont know if that makes any difference.

10-30-2003, 02:00 AM
try with ending slash

you might need backslashes with windows :-/

10-30-2003, 03:28 PM
is that a dir... looking again, it looks like it is.

try rmdir()

Angry Coder
10-30-2003, 06:05 PM
Originally posted by missing-score
is that a dir... looking again, it looks like it is.

try rmdir() Many thanks, that was the problem :)

10-30-2003, 08:45 PM
no problem. i cant believe i missed that fact that it was a directory. :confused: ah well, im getting old :P