egturnkey Posted August 31, 2009 Share Posted August 31, 2009 Hello Dear Friend, here i get that error Warning: mkdir() [function.mkdir]: No such file or directory in /hermes/web08/b1256/moo.faridaed/common/common.php on line 389 and here is the common.php code // create writable directory or change the chmod permission of chosen directory function check_dir($dir) { if (!file_exists($dir)) { if (mkdir($dir, 0777))// create images dir $done = true; } else if (!is_writeable($dir)) { if (chmod($dir, 0777)) // change perm. setting $done = true; } else $done = true; return $done; } it should create a file where an images will goes at following path products/images/ i've giveen /products/ and /images/ CHMOOD 777 and still getting the error :chomp: thanks so much for helping me Link to comment https://forums.phpfreaks.com/topic/172623-why-mkdir-function-not-working/ Share on other sites More sharing options...
roopurt18 Posted August 31, 2009 Share Posted August 31, 2009 safemode could affect this I believe. Is safemode on? Link to comment https://forums.phpfreaks.com/topic/172623-why-mkdir-function-not-working/#findComment-909936 Share on other sites More sharing options...
egturnkey Posted August 31, 2009 Author Share Posted August 31, 2009 safemode could affect this I believe. Is safemode on? Yes safemode is Off and PHP 5 shall i turn it to be On !!! i can easily edit my php.ini Link to comment https://forums.phpfreaks.com/topic/172623-why-mkdir-function-not-working/#findComment-909939 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.