# ftp\_put vs html upload and more

**URL:** <https://forum.kirupa.com/t/ftp-put-vs-html-upload-and-more/301233>\
**Category:** programming\
**Created:** [December 5, 2009, 5:49pm UTC](https://forum.kirupa.com/t/ftp-put-vs-html-upload-and-more/301233 "2009-12-05T17:49:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brookisme](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@brookisme](https://forum.kirupa.com/u/brookisme)\
**Post date:** [December 5, 2009, 5:49pm UTC](https://forum.kirupa.com/t/ftp-put-vs-html-upload-and-more/301233/1 "2009-12-05T17:49:32Z")

</div>

hello all - i have a couple of what should be easy questions:

1. what are the advantages/disadvantages of using php´s ftp functions, like ftp\_put over normal html post methods?

2. 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):

```auto

<form action="testftp.php" method="post">
<input type="file" name="imagefile">
<INPUT TYPE="submit" name="upload" value="upload">
</form>

```

```php

echo '1 '.$_POST['imagefile'];
echo 'f1 '.$_FILES['imagefile'];
echo 'f2 '.$_FILES['imagefile']['name'];
echo 'f3 '.$_FILES['imagefile']['tmp_name'];

```
