Skip to content

Instantly share code, notes, and snippets.

@radarin
Last active January 5, 2018 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radarin/4eca5939194858405ecc9430a4d71593 to your computer and use it in GitHub Desktop.
Save radarin/4eca5939194858405ecc9430a4d71593 to your computer and use it in GitHub Desktop.
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