pouncer Posted April 8, 2007 Share Posted April 8, 2007 if (!dir("profile_images/" . $username . "/")) { mkdir("profile_images/" . $username . "/"); } gives me errors Warning: dir(profile_images/John/) [function.dir]: failed to open dir: Invalid argument Warning: mkdir(profile_images/John/) [function.mkdir]: No such file or directory Link to comment https://forums.phpfreaks.com/topic/46161-solved-mkdir/ Share on other sites More sharing options...
Demonic Posted April 8, 2007 Share Posted April 8, 2007 try this: if (!is_dir("profile_images/" . $username . "/")) { mkdir("profile_images/" . $username . "/",0777); } Link to comment https://forums.phpfreaks.com/topic/46161-solved-mkdir/#findComment-224366 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.