...

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



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

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.

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

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

missing-score
10-29-2003, 11:14 PM
oops, didnt see that you were using xp pro. :p

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

Acecool
10-30-2003, 01:00 AM
toto/
try with ending slash

you might need backslashes with windows :-/

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

try rmdir()

Angry Coder
10-30-2003, 05: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 :)

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum