note 44851 added to faq.using

From: Date: Wed, 18 Aug 2004 04:00:34 +0000
Subject: note 44851 added to faq.using
Groups: php.notes 
Request: Send a blank email to php-notes+get-74846@lists.php.net to get a copy of this message
This should work: $n = 0; if ($handle = opendir('/path/to/files')) { while (false !== ($file = readdir($handle))) { n++; } closedir($handle); } I think there may be a shorter way, but in the meantime that will work :) (more information in the php docs under opendir() ) ---- Manual Page -- http://www.php.net/manual/en/faq.using.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44851 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44851&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44851&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#74846) next »