Linux Php Script Create Directory If Doesn't Exist

[Solved] Linux Php Script Create Directory If Doesn't Exist | Php - Code Explorer | yomemimo.com
Question : linux php script create directory if doesn't exist

Answered by : busy-bee-jgk2j7nk4qw3

$path = "sample/path/newfolder";
if (!file_exists($path)) { mkdir($path, 0777, true);
}

Source : | Last Update : Thu, 03 Jun 21

Answers related to linux php script create directory if doesn't exist

Code Explorer Popular Question For Php