Ryan Stemkoski shares his thoughts, which I agree with on the Search Engine Optomisation validity and success based on ‘Clean’ URL’s compared to query string based urls.
This here is a quick couple of functions to dynamically display files from any given directory.
It allows you to display it is a nice format with/out the files extension.
Pretty simple, but comments/suggestions/ bugs are very much welcome!!
< ?php // DIRECTORY DISPLAY USING GLOB AND A CLEAN PATH OUTPUT. // IF ALL PERIMATORS ARE EMPTY WILL SCNA DEFAULT DIRECTORY // '$path' => PATH TO DIRECOTRY TO SCAN // '$ext' => FILES EXT, IF YOU WANT OT ECLUDE IT, OR ONLY SCAN FOR ONE TYPE OF FILE // '$start' => APPEND TO START OF OUTPUT LINE EG: '
' // '$end' => APPEND TO END OF OUTPUT LINE EG: '\n' OR '
\n"; $output .= direcotryList("images/",".jpg","\n\n"; echo($output); ?>
","","\n"); $output .= "