mburt
01-05-2007, 05:41 PM
This script:
<?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!";
}
?>
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.
:confused:
<?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!";
}
?>
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.
:confused: