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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Fri May 03 13:01:32 2024 UTC