FTP

The functions in this section allow you to make connections to FTP servers. FTP is the file transfer protocol. While the file functions allow you to open and manipulate remote files by specifying a URL instead of a local path, these functions operate directly with the FTP protocol. They offer a greater degree of control. They also allow you to get a list of files on the server. The FTP functions were added to PHP by Andrew Skalski.M.

boolean ftp_cdup(integer link)

The ftp_cdup function changes the working directory to the parent directory.

boolean ftp_chdir(integer link, string directory)

The ftp_chdir function moves the working directory to the specified directory.

integer ftp_connect(string host, integer port)

Use ftp_connect to begin an ...

Get Core PHP Programming: Using PHP to Build Dynamic Web Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.