#28698 [Opn->Bgs]: Wrong upload command
| From: | derick@php.net | Date: | Tue, 08 Jun 2004 13:52:57 +0000 |
| Subject: | #28698 [Opn->Bgs]: Wrong upload command | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-60577@lists.php.net to get a copy of this message | ||
ID: 28698
Updated by: derick@php.net
Reported By: ed dot white at libero dot it
-Status: Open
+Status: Bogus
Bug Type: FTP related
Operating System: FreeBSD
PHP Version: 4.3.4
New Comment:
Ok, marking bogus then.
Previous Comments:
------------------------------------------------------------------------
[2004-06-08 15:47:17] ed dot white at libero dot it
Sorry, I'm dumb...
All ok with STOR.
PUT is used by ftp clients.
Ops.
------------------------------------------------------------------------
[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