Wie kann man im PHP-Script den erstellten Ordner mit chmod 777 anstatt 755 erstellen?

When creating a folder using PHP, the default permissions are usually set to 755, which means the folder is writable only by the owner. To change the permissions to 777, which allows read, write, and execute permissions for all users, you can use the `chmod()` function in PHP after creating the folder. Below is an example code snippet that creates a folder and sets its permissions to 777:

<?php
$folderPath = 'path/to/your/folder';

// Create the folder
mkdir($folderPath);

// Set permissions to 777
chmod($folderPath, 0777);
?>