How can file permissions be adjusted in an FTP program for PHP files?

To adjust file permissions in an FTP program for PHP files, you can use the `chmod` function in PHP. This function allows you to change the permissions of a file by specifying the desired permissions in numeric format. You can use this function to set specific permissions for PHP files, such as read, write, and execute permissions.

// Set the file path
$file = 'example.php';

// Set the desired permissions (e.g., read, write, and execute for owner)
$permissions = 0755;

// Change the file permissions
if (chmod($file, $permissions)) {
    echo "Permissions changed successfully!";
} else {
    echo "Failed to change permissions.";
}