crashmaster Posted May 24, 2007 Share Posted May 24, 2007 Hi there, I need one function, but I dont know how to create it . function check_dirs($dir) { //$dir = is path; should check if FOLDERs exists => return = TRUE;if if doesnt exist => CREATE THEM } for example check_dir('files/Images/'.date('y').'/'.date('m').'/'); if folder 'files/Images/'.date('y').'/'.date('m').'/' doesnt exist, script will create it... how to do that ? Link to comment https://forums.phpfreaks.com/topic/52853-need-function-check_dirs/ Share on other sites More sharing options...
Wildbug Posted May 24, 2007 Share Posted May 24, 2007 This isn't a regex problem. Take a look in the PHP manual under filesystem functions, mkdir(), for instance. Link to comment https://forums.phpfreaks.com/topic/52853-need-function-check_dirs/#findComment-261022 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.