⊗ppPmFSDC 344 of 447 menu

Creating Folders in PHP

The function mkdir allows you to create a folder. It accepts the path to the folder as a parameter. Example:

<?php mkdir('dir'); ?>

Create a folder named dir in the root of your website.

Given an array with strings. Create folders in the root of your website, using the elements of this array as their names.

Create a folder named test in the root of your website. Then create three files inside this folder: 1.txt, 2.txt, 3.txt.

byenru