From:             ed dot white at libero dot it
Operating system: FreeBSD
PHP version:      4.3.4
PHP Bug Type:     FTP related
Bug description:  Wrong upload command

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 bug report at http://bugs.php.net/?id=28698&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28698&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28698&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28698&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28698&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28698&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28698&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28698&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28698&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28698&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28698&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28698&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28698&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28698&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28698&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28698&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28698&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28698&r=float

Reply via email to