How do I make that piece of code more efficient, for lack of a better word I guess?
Meaning so I can store a chunk of exceptions in an array then have it just check $element against any one of the array elements. I'm pretty sure I've done this before but for the life of me can not think of it and I must be searching for the wrong thing to find what I am looking for elsewhere...
elseif ($element!= "." && $element!= ".." && $element!= "struct.php" && $element!= "index.php" && $element!= "index.htm" && $element!= "index.html")
{
//do whatever here
}