sean14592 Posted June 6, 2008 Share Posted June 6, 2008 Hi, I need to create a directory named after the username which is stored in a session, Though I ge the following error.... Warning: mkdir(http://www.************.com/properties/temp_images/sean844) [function.mkdir]: No such file or directory in /home/*******/public_html/pages/oaddprop12.php on line 177 My code is: $username = $_SESSION['username']; mkdir("".$siteurl."properties/temp_images/".$username.""); Can anyone see anythign wrong? Cheers Sean Quote Link to comment Share on other sites More sharing options...
sean14592 Posted June 6, 2008 Author Share Posted June 6, 2008 Fixed, here is new code tht works.... $username = $_SESSION['username']; mkdir("./properties/temp_images/".$username); cheers sean 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.