hello,
well for me this function make the error :
Warning: readdir() expects parameter 1 to be resource, boolean given
for
while (false !== ($file = readdir($dh))) {
any idea?
I must say I don't think it's a good practice to put html in your code, it's better to separate front presentation from back, so this function will be more logic to integrate to make others operations (of course it's not a big deal to modify)