Page 1 of 1

Creating directories through PHP

Posted: Wed Apr 30, 2003 6:46 am
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!

Posted: Wed Apr 30, 2003 7:35 am
by twigletmac
Probably best to start with mkdir():
http://www.php.net/manual/en/function.mkdir.php

Mac