php mkdir windows relative path

Posted by Vish on Stack Overflow See other posts from Stack Overflow or by Vish
Published on 2010-05-28T07:26:04Z Indexed on 2010/05/28 7:31 UTC
Read the original article Hit count: 349

Filed under:
|
|
|
|

Hi, Want to create a directory on windows from a PHP script.

My script is in www/Test directory of Apache and want to create a folder(fold1) inside www/downloads directory.

Inside the script, using,

$dirName = "../downloads/fold1";
mkdir("{$dirName}");

If we use the full path of dirName like C:\Apache\www\downloads\fold1, it works fine.

But want to use relative path since this code will be sent to the client.

Please let me know. Thanks, Vish.

© Stack Overflow or respective owner

Related posts about php

Related posts about Windows