etourslive Posted February 14, 2007 Share Posted February 14, 2007 OK i have a problem i need to move a file into the created directory currently the code below is creating the folder but renaming the file instead of putting it in the folder this is the code i am working with: $uniqueDir = $_POST['mls']; mkdir("d:/websites/www.twenterprize.com/upload/".$uniqueDir); $ftmp = $_FILES['image']['tmp_name']; $oname = $_FILES['image']['name']; $fname = ('d:/websites/www.twenterprize.com/upload/'.$uniqueDir).$_FILES['image']['name']; Please Help Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted February 14, 2007 Share Posted February 14, 2007 use the move_uploaded_file function: http://www.php.net/move_uploaded_file 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.