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

Reply via email to