fopen problem using ftp

From: Date: Tue, 15 Feb 2005 15:07:51 +0000
Subject: fopen problem using ftp
Groups: php.general 
Request: Send a blank email to php-general+get-208732@lists.php.net to get a copy of this message
HI all, I have a script that uses fopen to acces for read a file using ftp: $filepointer = fopen($address,'r'); having $address string formed this way: $address = "ftp://".$FTPuser.":".$FTPpassword."@".$FTPserver."/".$FileFolder"."/".$FileName; This script always worked for me, it has now stopped working trying it on the server of a different provider, returning an error 'failed to open stream...' I have the suspect that the funcion is failing due to the particular account name ( used also as FTP username ) this italian provider gived me when I sibscribed: It contains a @ symbol ( I.E., 123456@aruba.it ), and I believe that this confuses the parsing of the ftp://User:password@ftpserver/filepath string. Can you confirm this, or do you believe that the problem could be caused by other factors ( like server settings ) ? Could you suggest me e workaround? Thank you,
      Giulio
Cantoberon Multimedia srl http://www.cantoberon.it Tel. 06 39737052

« previous php.general (#208732) next »