PHP ftp_mdtm() Function17 Mar 2025 | 2 min read The ftp_mdtm() function returns when the specified file was last modified. This function was introduced in PHP 4. Syntax:
ReturnsThis function returns the last modified time as a Unix timestamp (or -1 on error). Important note: Not all servers support this function. The ftp_mdtm() function does not work with directories.Example 1Output: ![]() Example 2Output: ![]() Next TopicPHP FTP |
PHP ftp_rename( ) function The function renames a file or directory on the FTP server. This function was introduced in PHP 4. Syntax: bool ftp_rename ( resource $ftp_stream , string $oldname , string $newname ); Parameter Description Is compulsory ftp_stream The link identifier of the FTP connection. compulsory oldname The old file/directory name. compulsory newname The new name compulsory Return value: The...
1 min read
PHP Function The function is used to change the current directory to a specified directory on an FTP server. This function was introduced in PHP 4. Syntax: bool ftp_chdir ( resource $ftp_stream , string $directory ); Parameter Description Is compulsory ftp_connection/stream The link identifier of the FTP connection. compulsory directory The target directory. compulsory Returns This method returns...
1 min read
PHP Function The function is used to change the current directory to the parent directory. This function was introduced in PHP 4. Syntax: bool ftp_cdup ( resource $ftp_stream ); Parameter Description Is compulsory ftp_stream The link identifier of the FTP connection. compulsory Returns The ftp_cdup( ) function returns TRUE on success or FALSE on failure. Example...
1 min read
PHP function The function continues to receive/send a file to the FTP server.This function sends/retrieves the file asynchronously. This function was introduced in PHP 4.3.0. Syntax: int ftp_nb_continue ( resource $ftp_stream ); Parameter Description Is compulsory ftp_stream The link identifier of the FTP connection. compulsory Returns The function returns FTP_FAILED or FTP_FINISHED or FTP_MOREDATA. FTP_FAILED...
1 min read
PHP Function The function is used to allocate space for a file to be uploaded to the FTP server. This function was introduced in PHP 5. Syntax: bool ftp_alloc ( resource $ftp_stream , int $filesize [, string &$result ] ); Parameter Description Is compulsory ftp_stream The link identifier of the FTP connection. compulsory file_size The...
1 min read
PHP ftp_delete( ) Function The function is used to delete a file on the FTP server.This function was introduced in PHP 4. Syntax: bool ftp_delete ( resource $ftp_stream , string $path ); Parameter Description Is compulsory ftp_connection The link identifier of the FTP connection. compulsory file_name The file to delete. compulsory Returns The ftp_delete( ) function returns true on...
1 min read
PHP Function The function is used to set permissions on a specified remote file via FTP. This function was introduced in PHP 5. Syntax: int ftp_chmod ( resource $ftp_stream , int $mode , string $filename ); Parameter Description Is compulsory ftp_connection/stream The link identifier of the FTP connection. compulsory mode The new permissions, given as...
1 min read
PHP FTP The FTP functions give the client access to file servers through the File Transfer Protocol (FTP). functions are meant to allow you to access FTP files servers through a PHP script. FTP functions can be used to login, close connections, upload, rename, delete, download, get info...
2 min read
PHP Function The function opens an FTP connection to a server. When the connection is open, you can run FTP functions against the server. This function was introduced in PHP 4. Syntax: resource ftp_connect ( string $host [, int $port = 21 [, int $timeout = 90...
1 min read
PHP ftp_get_option( ) Function The function is used to retrieve various runtime behaviours of the current FTP stream. This function was introduced in PHP 4.2.0. Syntax: mixed ftp_get_option ( resource $ftp_stream , int $option ); Parameter Description Is compulsory ftp_stream The link identifier of the FTP connection. compulsory Option Specifies which runtime behaviour to return. Possible...
1 min read
We request you to subscribe our newsletter for upcoming updates.
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India