obay Posted September 25, 2007 Share Posted September 25, 2007 i currently have move_uploaded_file($_FILES['file']['tmp_name'], $target_path); which automatically deletes $_FILES['file']['tmp_name'] after it's executed, right? instead of move_uploaded_file(), im thinking about using ftp_put() to copy the uploaded file to another server. do i then have to unlink($_FILE['file']['tmp_name']) or is it deleted automatically? also, where can i find the temporary uploaded file? Quote Link to comment https://forums.phpfreaks.com/topic/70610-solved-move_uploaded_file-problem/ Share on other sites More sharing options...
HuggieBear Posted September 25, 2007 Share Posted September 25, 2007 i currently have move_uploaded_file($_FILES['file']['tmp_name'], $target_path); which automatically deletes $_FILES['file']['tmp_name'] after it's executed, right? No it moves it to that location, hence the function name move_uploaded_file() It's not called copy_then_delete_uploaded_file() Yes, if you were going to use ftp_put() then you'd need to remove it from the original location afterwards using unlink(). As for the location of the temporary uploaded file, it's specified in $_FILES['file']['tmp_name'] Regards Huggie Quote Link to comment https://forums.phpfreaks.com/topic/70610-solved-move_uploaded_file-problem/#findComment-354835 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.