This script:
Won't work. Although, without the red part, it works fine. What I'm aiming to do is to be able to upload a file from the users pc to another ftp server.Code:<?php $target_path = "ftp://****:****@oriosisedge.infinites.net/comics/$_POST[shortFile]"; $target_path = $target_path . basename( $_FILES['uploadedfile']['']); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['uploadedfile']['']). " has been uploaded"; } else{ echo "There was an error uploading the file, please try again!"; } ?>
![]()



Reply With Quote

Bookmarks