Skip to content

Instantly share code, notes, and snippets.

@radarin

radarin/php.chmod.php

Last active Jan 5, 2018
Embed
What would you like to do?
CHMOD ermitteln
<?php
// Ermittelt den CHMOD einer Datei
$chmod = (int) substr (decoct (fileperms ("datei.dat")), -3);
// CHMOD ändern
chmod("datei.htm", 0644);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment