Log in

View Full Version : Creating a dir in a folder via php



arsenalbates
02-22-2011, 08:36 PM
Is there a way of creating a directoy with a specific name using php. I currently have a way of creating a directory on the same level as the php doc however with this code i want to be able to create a directory within another directory and give it a name. is this possible ?:)

djr33
02-22-2011, 11:04 PM
http://php.net/manual/en/function.mkdir.php
Just set a path (a relative path to the execution location of the active script).
Set it to recursive you need to generate several layers.

arsenalbates
02-28-2011, 02:23 PM
Thank you