note 32083 added to function.is-dir

From: Date: Thu, 15 May 2003 22:05:09 +0000
Subject: note 32083 added to function.is-dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-48047@lists.php.net to get a copy of this message
$file_dir="news"; $dir=opendir($file_dir); while ($file=readdir($dir)) { if ($file != "." && $file != "..") { print'<div class="content">'; include($file_dir."/".$file); echo"</div>\n"; } } This is what I have so far, how would I go about including the files in ascending or descending order. Not to mention what would I do to include files in subdirectories so far it just spits back junk at me for any file sitting within a subdirectory. -- http://www.php.net/manual/en/function.is-dir.php http://master.php.net/manage/user-notes.php?action=edit+32083 http://master.php.net/manage/user-notes.php?action=delete+32083 http://master.php.net/manage/user-notes.php?action=reject+32083

« previous php.notes (#48047) next »