note 83967 added to function.is-dir

From: Date: Fri, 20 Jun 2008 21:21:34 +0000
Subject: note 83967 added to function.is-dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-140629@lists.php.net to get a copy of this message
@Anonymous: If on Linux the suggested code does not work because '.' and '..' will allways be returned, it may be possible to subtract 2 from the amount of files found. >>echo (count(glob("$dir/*") - 2) === 0) ? 'Empty' : 'Not In that way, I think, you have solved the problem of two extra files that are counted. ---- Server IP: 89.248.170.61 Probable Submitter: 84.41.160.218 ---- Manual Page -- http://www.php.net/manual/en/function.is-dir.php Edit -- https://master.php.net/note/edit/83967 Del: integrated -- https://master.php.net/note/delete/83967/integrated Del: useless -- https://master.php.net/note/delete/83967/useless Del: bad code -- https://master.php.net/note/delete/83967/bad+code Del: spam -- https://master.php.net/note/delete/83967/spam Del: non-english -- https://master.php.net/note/delete/83967/non-english Del: in docs -- https://master.php.net/note/delete/83967/in+docs Del: other reasons-- https://master.php.net/note/delete/83967 Reject -- https://master.php.net/note/reject/83967 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140629) next »