What i am tring to do is list everything in a directory. I can do that fine. The problem that I am having is I dont want to display the . and the .. I have tried a couple of things. What I would like to do is
if($file =="." || $file ==".."){
skip the rest of the code and go to the next file
}else {
rest of the code.
}
However when I do that I a time out error.