Home > Article > Backend Development > PHP-Create Folder_PHP Tutorial
[php] $local_doc1="tmp";
$local_doc2="qvod";
if(file_exists($local_doc1)){
}else{
mkdir($local_doc1);
if(file_exists($local_doc1."\".$local_doc2)){
}else{
mkdir($local_doc1."\".$local_doc2);
}
}
$local_doc1="tmp";
$local_doc2="qvod";
if(file_exists($local_doc1)){
}else{
mkdir($local_doc1);
if(file_exists($local_doc1."\".$local_doc2)){
}else{
mkdir($local_doc1."\".$local_doc2);
}
}
摘自 cyuyan112233的专栏