Good day,
I looked over the forums here and I found many related threads to permission denied errors but none I looked adressed a solution for my problem.
I run EasyPHP 1.7 on a Windows 2000 box. It has Apache 1.3.27 PHP 4.3.3.
I can create directories to store extracted zip files. Comes a time I want to delete these files and the directories. I can unlink the files but I can't remove the directories.
[Mon Jan 05 14:49:47 2004] [error] PHP Warning: rmdir(D:\moodledata/2/moddata/scorm/ADL_Maritime_Navigation): Permission denied in d:\program files\easyphp1-7\www\moodle\mod\scorm\lib.php on line 169
Yes, the directories I want to remove are empty.
function scorm_delete_files($directory)
{
if (is_dir($directory))
{
$handle=opendir($directory);
while (($file = readdir($handle)) != '')
{
if ($file != "." && $file != "..")
{
if (!is_dir($directory."/".$file))
unlink($directory."/".$file);
else
scorm_delete_files($directory."/".$file);
}
}
rmdir($directory);
}
}
Sorry for the formating by the way, I have C++ code writing habits!
chmod is set to 0750 for all directories I create.
I presume it's a configuration problem with Apache. I'm having big time trouble finding CLEAR configuration tips of httpd.conf
Anyone can help?
Thanks!