php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34187 ftp_put local and remote file names.
Submitted: 2005-08-18 18:02 UTC Modified: 2005-08-18 22:04 UTC
From: bsgro at handsfreenetworks dot com Assigned:
Status: Not a bug Package: FTP related
PHP Version: 5.0.4 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bsgro at handsfreenetworks dot com
New email:
PHP Version: OS:

 

 [2005-08-18 18:02 UTC] bsgro at handsfreenetworks dot com
Description:
------------
This may not be a bug, because the documentation states a local and remote name. However I do not see why you cannot use same name when doing a:
$filename = 'file.txt';
ftp_put($handle,$filename,$filename,FTP_BINARY);

You can command line ftp and do:
>send file.txt
which sends the file and keeps the same name. Otherwise you do:
>send
>file.txt
>remotefile.txt

So, maybe this is a feature request, but it may seem more like a bug.

Thanks.

Actual result:
--------------
PHP Warning:  ftp_put() [<a href='function.ftp-put'>function.ftp-put</a>]: Could not create file. in ....

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-18 22:04 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 02:01:29 2024 UTC