Page 1 of 1

ftp() functions

Posted: Wed Jan 15, 2003 7:00 pm
by phice
So I'm reading the ftp functions in my PHP Reference manual. But I come along this "int stream" statement... In example:

ftp_delete(int stream, string path);
AND
ftp_cdup(int stream);

does "int stream" mean like if you set a variable $connect = ftp_connect(dfjkalsdf);, then it would do ftp_cdup($connect); ?

Posted: Wed Jan 15, 2003 10:50 pm
by volka
http://www.php.net/manual/en/function.ftp-connect.php
resource ftp_connect ( string host [, int port [, int timeout]])

Returns a FTP stream on success or FALSE on error.
exactly :D

see also: http://www.php.net/manual/en/ref.ftp.php#ftp.examples