note 32083 rejected from function.is-dir by alindeman

From: Date: Thu, 15 May 2003 23:51:27 +0000
Subject: note 32083 rejected from function.is-dir by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48053@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.

« previous php.notes (#48053) next »