#28698 [Opn]: Wrong upload command
| From: | ed dot white at libero dot it | Date: | Tue, 08 Jun 2004 13:47:18 +0000 |
| Subject: | #28698 [Opn]: Wrong upload command | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-60575@lists.php.net to get a copy of this message | ||
ID: 28698
User updated by: ed dot white at libero dot it
Reported By: ed dot white at libero dot it
Status: Open
Bug Type: FTP related
Operating System: FreeBSD
PHP Version: 4.3.4
New Comment:
Sorry, I'm dumb...
All ok with STOR.
PUT is used by ftp clients.
Ops.
Previous Comments:
------------------------------------------------------------------------
[2004-06-08 15:43:36] ed dot white at libero dot it
Description:
------------
The PHP function ftp_put() send a STOR command to the FTP
server. The problem is that very few servers support it.
Today the right command to upload files is PUT.
Reproduce code:
---------------
Use the example on the manual page. It contains a complete script to
upload a file. Test it with a Linux/BSD/unix ftp servers and see no
good results.
I haven't any Windows ftp servers to test.
Expected result:
----------------
upload a file with PUT.
Actual result:
--------------
Warning: ftp_put(): 'STOR': command not understood. in
/usr/home/ed/src/update-stocklist.php on line 34
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28698&edit=1