PHP4.04 Methodes mkdir(), fopen() brings an Error on a WinXP/IIS5.0 PC "Permission denied"

From: Date: Sun, 05 May 2002 09:26:29 +0000
Subject: PHP4.04 Methodes mkdir(), fopen() brings an Error on a WinXP/IIS5.0 PC "Permission denied"
Groups: php.windows 
Request: Send a blank email to php-windows+get-13550@lists.php.net to get a copy of this message
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: th.hodes@gmx.de :-)

« previous php.windows (#13550) next »