New coder here trying to figure out how to use PHP to create a folder.
From reading the PHP manual the following function is use to create either a folder or a file.
$filename = '/images/minis/newfolder'; mkdir($filename, 0777, true);
This is not making a new folder though. The code for doing this is one level up from the root (i.e. root/controls/foldercreator.php).
I am trying to create this folder here: root/images/minis/
The folders “images” and “minis” already exist.
Any idea why this is not working for me?