Reputation: 33
Is there another way how to make directory in php? mkdir() is not working. I have tried this:
if (!file_exists('path/to/directory')) {
mkdir('path/to/directory', 0777, true);
}
from here: Create a folder if it doesn't already exist
I have no error, no warning, code is doing nothing.
Upvotes: 1
Views: 1496
Reputation: 3261
A few things to try:
Upvotes: 2