Hi Newsgroup! I have a big Problem with PHP-4.0.4 on a WinXP/IIS 5.0 PC, when I want to write an File or create a Folder with the PHP-Methodes "mkdir" bzw. "fopen"! The PHP brings me an Error like:
Warning: MkDir failed (File exists) in functions.inc.php on line 56 Warning: fopen("C:/Programme/MyCMS/mainnavi.php","r+") - Permission denied in functions.inc.php on line 69 Warning: Supplied argument is not a valid File-Handle resource in functions.inc.php on line 131 Warning: Supplied argument is not a valid File-Handle resource in functions.inc.php on line 132 ...! The Error-Message means, that the File currenty exists. But this is false! And then the Error means too, that I havn't any Permission to write a File or a Folder. This is the code, that I wrote: ... mkdir("".$GLOBALS["rootpath"]."/contents/c".$area_id."", 0777); //Erzeugt Contentordner mkdir("".$GLOBALS["rootpath"]."/contents/c".$area_id."/forms", 0777); //Enthält Formulardateien f. Content (Datenstruktur usw.) ... ... $file = "".$GLOBALS["rootpath"]."mainnavi.php"; $fp = fopen($file, "r+"); ... ....... Can someone help me? I don't have any Idea what Settings I must set on IIS or WinXP? I have give IIS (virtual webfolder) rights to write, execute and read any Script or File, too but the error is always the same. What can I do more to fix the Error! For Testings, I install Apache insteat of IIS, but the Problem was the same!! I think it can be a PHP-Bug, or not??? Thank you for your help!! My E-Mail Address is: [EMAIL PROTECTED] :-) -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php