note 110292 rejected from function.ftp-nb-fput by googleguy
| From: | googleguy@php.net | Date: | Tue, 09 Oct 2012 01:47:54 +0000 |
| Subject: | note 110292 rejected from function.ftp-nb-fput by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191197@lists.php.net to get a copy of this message | ||
Note Submitter: roland dot hentschel at t-online dot de
----
Hope I'm not double posting ?
Now, there is a snippet, that's almost what I need :
http://www.php.net/manual/en/function.ftp-nb-fput.php#47920
However, I want it to use with a form
<form ...><input name="userfile" type="file" ... /></form>
And I don't see, how I can modify the script.
$remote_file is most likely something like $_FILES["userfile"]["name"]
while $local_file should be something like $_FILES["userfile"]["tmp_name"]
But whatever I tried so far, I just didn't get it working.
Who can help me ?