WinXP pro, unlink(): PERMISSION DENIED
Posted: Sun Aug 01, 2004 10:05 pm
I am running a script off my personal Apache server with PHP5 on my windows XP professional computer, and I have a script intent on being able to alter and delete files from the "localhost" directory. I've Google, forum and PHP.net searched the web only to find nothing. So, here I turn.
I am a computer admin, supposedly full access... but every time I run this snippet script:
I recieve this error:
I am a computer admin, supposedly full access... but every time I run this snippet script:
Code: Select all
<?php
$file = "index2.php";
if($action == "del"){
unlink($file);
}
?>I've used the chmod function, setting permissions to 0777... only to find the fileperms() function returns the number "33206" on the files. Any Ideas on how to give permissions to my script and files?Warning: unlink() [function.unlink]: Permission denied in c:\program files\apache group\Apache\htdocs\dirinfo.php on line 60