Creating directories through PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jim
Forum Contributor
Posts: 238
Joined: Fri Apr 19, 2002 5:26 am
Location: Near Austin, Texas

Creating directories through PHP

Post by Jim »

I'm creating a CMS that manages several sites on a network. When an administrator adds a site to the network through the control panel, I want a directory to be created.

The directory will be named after the variable $prefix.

Any clue how I can do this? I looked through the filesystem directory functions and couldn't find what I was looking for :oops:

Thanks!
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Probably best to start with mkdir():
http://www.php.net/manual/en/function.mkdir.php

Mac
Post Reply