write pro grm to create directory

Posted on 2005-05-07
Last Modified: 2006-11-18
how can I write pro gram to create directory ? where the name of directories are stay on file  "direct".
Question by:teera
    LVL 12

    Assisted Solution

    You can create a directory using mkdir function

    Mode is ignored on Windows, and became optional in PHP 4.2.0.
    mkdir("/path/to/my/dir", 0700);
    Returns TRUE on success or FALSE on failure

    Could you please tell me what you mean by -- where the name of directories are stay on file  "direct".

    LVL 7

    Accepted Solution

    Some thing like th is?

    $dirtocreate= 'mydir';
    mkdir("/path/to".$dirtocreate, 0700);

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
    The viewer will learn how to dynamically set the form action using jQuery.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now