shining on
04-02-2006, 06:10 PM
hi all,
does anyone know if there's a wildcard character to add to if/else conditions? For example, if u wanted to search your computer for all html files you'd search for "*.html" or "*folder_name/*" to find all files in a folder - can this be done in php?
what i'm trying to do is say if the file name (PHP_SELF) is within a certain folder do this, if not, do that...
does anyone know if there's a wildcard character to add to if/else conditions? For example, if u wanted to search your computer for all html files you'd search for "*.html" or "*folder_name/*" to find all files in a folder - can this be done in php?
what i'm trying to do is say if the file name (PHP_SELF) is within a certain folder do this, if not, do that...