From 94a2182c95cc95646ad582616d335bce62152c86 Mon Sep 17 00:00:00 2001
From: Derek Jones
Note: This is not an accurate way of determining file mime types, and is here strictly as a convenience. It should not be used for security.
+ +Takes numeric permissions (such as is returned by fileperms() and returns standard symbolic notation of file permissions.
+ +echo symbolic_permissions(fileperms('./index.php'));
+
+// -rw-r--r--
+
+Takes numeric permissions (such as is returned by fileperms() and returns a three character octal notation of file permissions.
+ +echo octal_permissions(fileperms('./index.php'));
+
+// 644
+
+
--
cgit v1.2.3-24-g4f1b