PHP code question...

Hi - I’m modifying someone else’s code, and I have a question…

A part of the code builds an array of all the files and folders in a particular directory on the server. Here is the line of code I want to change:


if (!eregi("tmp","$f") && !eregi("\.+","$f") ) { //skip tmp directory 

What I want to do, is in addition to the tmp directory getting skipped, I also want to skip an additional “Exclude” directory. How would I do that? Thanks.


if (!eregi("tmp","$f") && !eregi("\.+","$f") && !eregi("Exclude", "$f")) { //skip tmp directory

That worked like a charm… Thank you very much!!!

No problemo.