#24892 [Com]: fopening a remote FTP server

From: Date: Fri, 22 Oct 2004 05:41:59 +0000
Subject: #24892 [Com]: fopening a remote FTP server
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67935@lists.php.net to get a copy of this message
ID: 24892 Comment by: Volker at fay dot net Reported By: php at lostair dot net Status: Bogus Bug Type: FTP related Operating System: Irrelevant PHP Version: Irrelevant New Comment: Just browsing through to see what you have. Excellent website. I had a great time visiting your site. It`s pretty nice ! Keep up the good work ! http://www.mp3.download.de.tc http://www.download.mp3.de.tc http://www.mp3.downloads.de.tc http://www.mp3.musik.de.tc http://www.mp3-archiv.de.tc http://www.mp3-stick.de.vu http://www.mp3-finden.de.vu http://www.musik-download.de.tc http://www.musik-runterladen.de.tc http://www.online-routenplan.de.tc Previous Comments: ------------------------------------------------------------------------ [2003-08-01 06:33:25] sniper@php.net You need to use urlencode on the username/password. Not bug. ------------------------------------------------------------------------ [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

« previous php.bugs (#67935) next »