Daney11 Posted February 13, 2008 Share Posted February 13, 2008 Hey guys, its not letting me post my code. so i will add a link http://nopaste.php-quake.net/16954 basically i want to name my files that are being uploaded to $file_name which is in that script. Im not sure on how to implement this. Any ideas guys? Thanks Link to comment https://forums.phpfreaks.com/topic/90990-php-upload/ Share on other sites More sharing options...
cooldude832 Posted February 13, 2008 Share Posted February 13, 2008 move_uploaded_file Link to comment https://forums.phpfreaks.com/topic/90990-php-upload/#findComment-466353 Share on other sites More sharing options...
Daney11 Posted February 13, 2008 Author Share Posted February 13, 2008 if (move_uploaded_file($_FILES['file']['tmp_name'], $uploaddir . $_FILES['file']['name'])) should be if (move_uploaded_file($file_name, $uploaddir . $_FILES['file']['name'])) ?? Link to comment https://forums.phpfreaks.com/topic/90990-php-upload/#findComment-466356 Share on other sites More sharing options...
Daney11 Posted February 13, 2008 Author Share Posted February 13, 2008 cant get the hang of it Link to comment https://forums.phpfreaks.com/topic/90990-php-upload/#findComment-466368 Share on other sites More sharing options...
Daney11 Posted February 14, 2008 Author Share Posted February 14, 2008 am i right in thinking u need to change $_FILES['file']['tmp_name'] ? Link to comment https://forums.phpfreaks.com/topic/90990-php-upload/#findComment-466413 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.