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 Quote Link to comment 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); } Quote Link to comment 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.