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 Link to comment https://forums.phpfreaks.com/topic/38393-making-a-directory-and-putting-a-photo-in-it/ 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 Link to comment https://forums.phpfreaks.com/topic/38393-making-a-directory-and-putting-a-photo-in-it/#findComment-184127 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.