note 42770 added to function.is-dir

From: Date: Fri, 28 May 2004 14:10:34 +0000
Subject: note 42770 added to function.is-dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-70242@lists.php.net to get a copy of this message
This is the "is_dir" function I use to solve the problems : function Another_is_dir ($file) { if ((fileperms("$file") & 0x4000) == 0x4000) return TRUE; else return FALSE; } or, more simple : function Another_is_dir ($file) { return ((fileperms("$file") & 0x4000) == 0x4000); } I can't remember where it comes from, but it works fine. ---- Manual Page -- http://www.php.net/manual/en/function.is-dir.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42770 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42770&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42770&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70242) next »