hello all - i have a couple of what should be easy questions:
-
what are the advantages/disadvantages of using php´s ftp functions, like ftp_put over normal html post methods?
-
in trying to use the ftp_put, i need an html form which will post the filename/path (NOT THE FILE – i don´t want to upload the file via http and ftp!)
- i had read that i could just drop enctype=“multipart/form-data” but it doesn’t seem to work
is some test code (just meant to echo the file name - the php tries to do this in different ways):
<form action="testftp.php" method="post">
<input type="file" name="imagefile">
<INPUT TYPE="submit" name="upload" value="upload">
</form>
echo '1 '.$_POST['imagefile'];
echo 'f1 '.$_FILES['imagefile'];
echo 'f2 '.$_FILES['imagefile']['name'];
echo 'f3 '.$_FILES['imagefile']['tmp_name'];