Re: FTP connection using fsockopen

From: Date: Thu, 22 Jun 2000 03:23:14 +0000
Subject: Re: FTP connection using fsockopen
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2570@lists.php.net to get a copy of this message
> how to make FTP connection using fsockopen(). i have trise using > fsockopen("blah.com",21) and it's connected well, but what then ? how to log > in and retrieve files from the server ? FTP's a much more complex protocol than HTTP. You'd probably find it much easier to use the new FTP module in PHP4 (http://www.php.net/manual/ref.ftp.php). If you still want/need to roll your own function, read RFC959 (ftp://ftp.isi.edu/in-notes/rfc959.txt).

« previous php.general (#2570) next »