php操作路径的经典方法(必看篇) 如下所示:functioncreate_folders($dir){returnis_dir($dir)or(create_folders(dirname($dir))andmkdir($dir,0777));}func php操作路径