Re: ftp conection..

From: Date: Mon, 31 Jul 2000 19:52:14 +0000
Subject: Re: ftp conection..
Groups: php.general 
Request: Send a blank email to php-general+get-9255@lists.php.net to get a copy of this message
I tried using fopen to connect using something like ftp://username:pass@some.ip/some/dir/ but that gave me a ("ftp://...@200.27.198.16/suma/noticias/","r") - No such file or directory error. I figured it was due the username:pass which might me confusing php3. I copied and pasted the URL from netscape, to ensure that the URL is correct. Regards, Wachaca en Mon, 31 Jul 2000 12:29:25 -0700 "Chris Adams" escribió: > Is there any reason why you can't just use the ftp:// URL > syntax and the > normal file I/O functions? That'd be by far the easiest approach; another > thing to try would be the FTP extension in PHP4. > > Otherwise, you'll need to read the FTP RFC to get all of the gory the > details on how FTP works; a separate data connection is used to transfer > directory listings & files, so you'll probably need to use PASV, which > allows you to open the data connection, instead of figuring out how to > handle the default FTP behaviour, where the server opens the connection > back > to you (which would be messy to do in PHP). > Este correo fue enviado a través de Santiago.cl http://www.santiago.cl, La Capital de Chile en Internet

« previous php.general (#9255) next »