1
create folder with php
CGuild1.com > Tips & Tricks > create folder with php

Create a directory with PHP

Learn how to create a directory with php if one isn't there.

<?php
if (!file_exists('path/to/directory')) {
    mkdir('path/to/directory', 0777, true);
}
?>


I found this over here at Stackoverflow.
©2024 CGuild1.com