Mailinglisten-Archive |
Am Montag, 3. Juni 2002 23:02 schrieb Martin Spütz:
> Was bedeuten denn diese komischen Zahlen, z.b. 33279 für chmod 0777?
Ein Blick ins Manual z.B. http://www.php.net/manual/de/function.fileperms.php
und in die "User Contributed Notes" geblickt:
~~~~~~
To return the regular 3-digit permissions, this was the only thing I could
get to work.
//return permissions in the normal format
$decperms = fileperms($file);
$octalperms = sprintf("%o",$decperms);
$perms=(substr($octalperms,3));
~~~~~
Gruss Stefan
php::bar PHP Wiki - Listenarchive