I am using PHP in a Unix Solaris enviroment. I am a novice at best in php.
I have a list is file in say /logs. I want the end-user to be able to view a list of files in the /logs directory, then with a hyperlink, be able to view the contents of the /logs/<filename> where say, file names would be a.log, b.log, c.log, and so forth.
How do I do this type of listing in PHP? I can build the basic html around the php, just not sure how to do the dynamic "array" portion, or maybe the array approach is not the best method?
Examples would be appreciated.