permissions problem with unlink()

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am having trouble getting unlink() to work on my local machine
(win 2000, Apache, php 4.2.2)

when I invoke unlink() in order to change a file name during
a 'picture edit' change from a form upload on my local machine using simple
stuff like:







I get:

Warning: unlink() failed (Permission denied) in
C:\FoxServ\www\content\do_page_content.php on line 161

this doesn't happen with my online set-up so I am pretty sure it's a
permissions issue (and the error message says so!)

I have looked at and checked the permissions on all the relevant folders via
win 2000 settings, allowing full read/write to 'everyone' etc.
but it makes no difference. Maybe I'm not setting them correctly? help

Re: permissions problem with unlink()

oops, sorted this out - I had a problem with naming the  file
earlier in the script which when sorted didn't create this problem.
classic example of taking an error message too literally and looking in the
wrong place.

Quoted text here. Click to load it

Site Timeline