ftp() functions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

ftp() functions

Post 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); ?
Image Image
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
Post Reply