Jump to content

Making a directory and putting a photo in it


etourslive

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.