Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End mkdir doesn’t make additional directories

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #30914
    brianatlarge
    Member

    I’m trying to make a folder, and then two more folders in that directory. For some reason, it only makes the first folder, but it doesn’t make the last two folders.


    mkdir($_SERVER . "/images/gallery/$newdir", true);
    mkdir($_SERVER . "/images/gallery/$newdir/thumb", true);
    mkdir($_SERVER . "/images/gallery/$newdir/full", true);

    Safemode is off.

    EDIT: Nevermind, fixed it.


    mkdir($_SERVER . "/images/gallery/$newdir", 0777, true);
    mkdir($_SERVER . "/images/gallery/$newdir/thumb", 0777, true);
    mkdir($_SERVER . "/images/gallery/$newdir/full", 0777, true);
Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.