I have a form that when filled out generates a file within a certain folder.
I list the files from that folder and show the contents of those files.
Now my question is, how can I show them in a specific order?
At the moment it shows them in alphabetical order.
Thanks for your help.
EDIT:
I will try to post my code:
<?php
$path='Rb-Admin/inc/News';
$files=scandir($path);
//print_r($files);
foreach ($files as $key => $value) {
if($value!="." && $value!=".." && $value!=".kite")
{
print_r(file_get_contents($path."/".$value));
}
}
?>