ftp_chmod

PHP 5, PHP 7, PHP 8
ftp_chmod - Set permissions on a file via FTP
Manual
Code Examples

ftp_chmod( FTP\Connection$ftp, int$permissions, string$filename ): int|false

Sets the permissions on the specified remote file to permissions.

Parameters

ftp

An FTP\Connection instance.

permissions

The new permissions, given as an octal value.

filename

The remote file.

Return Values

Returns the new file permissions on success or false on error.

Changelog

Version Description
8.1.0 The ftp parameter expects an FTP\Connection instance now; previously, a resource was expected.

Related Functions

Example of ftp_chmod

Show all examples for ftp_chmod

PHP Version: