View Single Post
Join Date: Sep 2008
Posts: 13
Reputation: hirts_gal is an unknown quantity at this point 
Solved Threads: 0
hirts_gal hirts_gal is offline Offline
Newbie Poster

Re: Error in uploading file via ftp server

 
0
  #4
Sep 22nd, 2008
if i use the cording below replace the cording that i post previously:-

$destination_dir = 'home/admin';
$destination_file = $uploaddir . basename($_FILES['file']['name']);
if (move_uploaded_file($source_file, $destination_file)) {
print "Received {$_FILES['file']['name']} - its size is {$_FILES['file']['size']}";
} else {
print "Upload failed!";
}

it give me a successful message showing that the file upload successfully. but if i try to search the file in /home/admin dir in linux....there were no files there.is my upload file works and where do i check for the uploaded files. help me plz..
Reply With Quote