note 37225 deleted from function.fileperms by aidan

From: Date: Sat, 10 Jul 2004 13:26:57 +0000
Subject: note 37225 deleted from function.fileperms by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72991@lists.php.net to get a copy of this message
Note Submitter: pmaxwell@NO-SPAM.cassys.biz ---- re: trell at mail dot com (19-Sep-2002 01:13) substr(base_convert(fileperms($filename), 10, 8), 3); this works OK for files but not directories: try this for both files and directories: $perms = base_convert(fileperms($filename), 10, 8); $perms = substr($perms, (strlen($perms) - 3)); (fileperms(filename) returns a shorter octal number for directories) thanks trell ! Paul

« previous php.notes (#72991) next »