php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #40378 add ftp_append() function
Submitted: 2007-02-07 05:19 UTC Modified: 2018-06-19 20:29 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: randy at greatplainsmfg dot com Assigned: nikic (profile)
Status: Closed Package: FTP related
PHP Version: 5.2.0 OS: *
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: randy at greatplainsmfg dot com
New email:
PHP Version: OS:

 

 [2007-02-07 05:19 UTC] randy at greatplainsmfg dot com
Description:
------------
I need an ftp_append() function. The remote system I am trying
to ftp to (an IBM AS400) works good with ftp_put() and ftp_get(). Because there is no ftp_append() I have tried the
following:
fopen("ftp://name:passwd@remote_as400/path/filename", "a");

This fails on the AS400 even though command line ftp via
a terminal works with append. I think the problem is that
the fopen() is passing "/path/filename" to the AS400 when
it (the AS400) will only accept "path/filename". Notice the
lack of the leading '/'

And many thanks for a most excellent software package!!!

Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
Salina, KS USA 67401
email: randy@greatplainsmfg.com



Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-21 21:14 UTC] jani@php.net
-Package: Feature/Change Request +Package: FTP related
 [2011-02-21 21:14 UTC] jani@php.net
-Operating System: Any +Operating System: *
 [2018-06-19 20:29 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2018-06-19 20:29 UTC] nikic@php.net
ftp_append() is available since PHP 7.2, so this is (finally) resolved.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 00:01:27 2024 UTC