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 Link to comment https://forums.phpfreaks.com/topic/108979-solved-mkdir-problem/ 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 Link to comment https://forums.phpfreaks.com/topic/108979-solved-mkdir-problem/#findComment-559079 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.