#24892 [Opn->Fbk]: fopening a remote FTP server

From: Date: Thu, 31 Jul 2003 19:20:11 +0000
Subject: #24892 [Opn->Fbk]: fopening a remote FTP server
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-45136@lists.php.net to get a copy of this message
 ID:               24892
 Updated by:       elmicha@php.net
 Reported By:      php at lostair dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         FTP related
 Operating System: Irrelevant
 PHP Version:      Irrelevant


Previous Comments:
------------------------------------------------------------------------

[2003-07-31 14:19:53] elmicha@php.net

What kind of ftp server is this where you can use a user _name_ with an
"@"? Can you connect to it with a regular ftp client and copy and paste
that ftp session into here?

Also note that the URL scheme is "ftp", not "fttp".

------------------------------------------------------------------------

[2003-07-31 13:47:27] php at lostair dot net

Description:
------------
There are problems when the @(AT) character is contained within the
username through a fopen statement.

In the following exampls, there are no escape characters utilised. 
However, this doesn't help the matter either.

I previously send in a Bug report for the same situation with the
phase_url - but was classed as a bogus.  So, where is the problem then?
 As it is possible to have a @(AT) sign within the user name.


Reproduce code:
---------------
$handle = fopen("fttp://user@dna.com:password@ftp.host.com","rw");

//  user="user@dna.com"
//  password = "password"
//  host = "ftp.dnacpu.com"

Expected result:
----------------
For the file to be successfully accessed

Actual result:
--------------
No Connection, due to the problem that there are two AT signs contains
within the URL.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24892&edit=1



Thread (5 messages)

« previous php.bugs (#45136) next »