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 ? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/52853-need-function-check_dirs/#findComment-261022 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.