Can i have a .php file create a list of files in a specified directory, include each listed file at a specific point in the code?
what i am trying to do is use the following "system" for whatever reason.
index.php
<?php
// i include the valid html 4.01 header crap here
// it includes everything until <body ... >
// this is where i imagine some more code would go to make the list of files to include.
// now i can start to use "the list" in the body of the document.
// First i have a standard setup to create a table or other formatting
include 'index.setup.html'
// then the "content" is put in as described above using include.
include '${filenamefromlist}';
repeat - until n NUMBER OF FILES deep.
-- i am planning on having the files put in the directory named numerically, by extracting julian date + h,m,s, and using that for the name of the file. e.g.: 234210532.content.html Each text file that is put in will have higher priority, so the list is newest first --> oldest, until n old, so to speak --
// now include the bottom of the table/formatting, etc.
include 'index.closer.html';
// now close the page.
include 'index.footer.html'
// Aloha! this is the end of my page
?>
So....
The question...........
how?
i am getting very cluefull at the php stuff , but i am diving in a bit more, reading and writing files, interactive manipulation, forms, etc.
so although not an idiot, not a rocket scientist either.
searching was making my head hurt, so now i figure i can ask as my hunt has gone unfulfilled.
Thanks a ton!