i had the same problem .....

checkout your dir where you've saved the file you are
executing .....

check the path in your code .....

with me ... i put another "\" in the path after the 
ie 

$fp=fopen("c:\\name.txt", "w");

vat happened after this waz .... it didnt give me the
errors you are getting ....

and then my problm started here .....

its not saving the things to the disk .....

i'm not getting any errors but it doesnt work the way
i want it to anyway .....

can someone tell me how i can save the fields im
taking as input fron my form to disk ????


thnx ....






--- Thorsten Hodes <[EMAIL PROTECTED]> wrote: > 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
>  

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to