ftp_cdup PHP 3.0.13

bool ftp_cdup(resource stream)

 

Changes to the parent directory.

ftp_chdir PHP 3.0.13

bool ftp_chdir(resource stream, string directory)

 

Changes directories.

ftp_close PHP 4.1.0

void ftp_close(resource stream)

 

Closes the FTP stream.

ftp_connect PHP 3.0.13

resource ftp_connect(string host[, int port[, int timeout)]])

 

Opens an FTP stream.

ftp_delete PHP 3.0.13

bool ftp_delete(resource stream, string file)

 

Deletes a file.

ftp_exec PHP 4.0.3

bool ftp_exec(resource stream, string command)

 

Requests execution of a program on the FTP server.

ftp_fget PHP 3.0.13

bool ftp_fget(resource stream, resource fp, string remote_file, int mode[, int resumepos])

 

Retrieves a file from the FTP server and writes it to an open file.

ftp_fput PHP 3.0.13

bool ftp_fput(resource stream, string remote_file, resource fp, int mode[, int startpos])

 

Stores a file from an open file to the FTP server.

ftp_get_option PHP 4.1.0

mixed ftp_get_option(resource stream, int option)

 

Gets an FTP option.

ftp_get PHP 3.0.13

bool ftp_get(resource stream, string local_file, string remote_file, int mode[, int resume_pos])

 

Retrieves a file from the FTP server and writes it to a local file.

ftp_login PHP 3.0.13

bool ftp_login(resource stream, string username, string password)

 

Logs into the FTP server.

ftp_mdtm PHP 3.0.13

int ftp_mdtm(resource stream, string filename)

 

Returns the last modification time of the file or -1 on error.

ftp_mkdir PHP 3.0.13

string ftp_mkdir(resource stream, string directory)

 

Creates a directory and returns the absolute path for the new directory or false on error.

ftp_nlist PHP 3.0.13

array ftp_nlist(resource stream, string directory)

 

Returns an array of filenames in the given directory.

ftp_pasv PHP 3.0.13

bool ftp_pasv(resource stream, bool pasv)

 

Turns passive mode on or off.

ftp_put PHP 3.0.13

bool ftp_put(resource stream, string remote_file, string local_file, int mode[, int startpos])

 

Stores a file on the FTP server.

ftp_pwd PHP 3.0.13

string ftp_pwd(resource stream)

 

Returns the present working directory.

ftp_rawlist PHP 3.0.13

array ftp_rawlist(resource stream, string directory[, bool recursive])

 

Returns a detailed listing of a directory as an array of output lines.

ftp_rename PHP 3.0.13

bool ftp_rename(resource stream, string src, string dest)

 

Renames the given file to a new path.

ftp_rmdir PHP 3.0.13

bool ftp_rmdir(resource stream, string directory)

 

Removes a directory.

ftp_set_option PHP 4.1.0

bool ftp_set_option(resource stream, int option, mixed value)

 

Sets an FTP option.

ftp_site PHP 3.0.15

bool ftp_site(resource stream, string cmd)

 

Sends a site command to the server.

ftp_size PHP 3.0.13

int ftp_size(resource stream, string filename)

 

Returns the size of the file or -1 on error.

ftp_systype PHP 3.0.13

string ftp_systype(resource stream)

 

Returns the system type identifier.