Hi, I'm kind of new at PHP and have a problem and am submitting it to you all in hopes that maybe someone might give me a pointer or two on what I am doing wrong.

I am building a little site that needs to dynamically open new directories in it's file system. To do this I have been trying the php mkdir function and up to now each time I run my script I get the message on my WIN 2000 where I am the administrator:

Warning: MkDir failed (Permission denied) in c:\inetpub\wwwroot\vacanzeazzurre\cathy\newDirectory.php on line 2

I get the same message under unix and even when the current directory permissions are set to 777.

Here is my script (very short):

<?php
mkdir ("newdir");
?>

Any help would be appreciated.

Thank you,

George

    mkdir

         You will have to specify the excat physical path. If you want to create a directory where your php file resides then give it like

    mkdir ("./mkdir", 0700); or mkdir ("./mkdir"); or specify the excat path by ("/path/to/my/dir", 0700); or mkdir("c:/windows/ss/",0700) if you are using windows

      Write a Reply...