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:
<?php
if(file_exists($new_file_name)){
unlink($new_file_name);
}
if($new_pic){rename($old_file_name,$new_file_name) ;}
}
?>
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
appreciated.