Menu
I’m trying to sort the list of files from ABC, Currently its displaying rand, How would I organize this?
THANKS
[CODE]
$ndir = @opendir(‘news_articles/title’);
$counter = 0;
while(($filename = readdir($ndir)) !== false){
if(!($counter < 2)){
$display = file_get_contents(‘news_articles/title/’ . $filename);
echo $display . ‘<br>’;
}
$counter++;
}
?>