Jump to content

[SOLVED] Wildcard for File Name Directory Listing


TRI0N

Recommended Posts

Never had to use a wildcard before except for Database ones but here is the code.  I want it to filter out a few things and want to create a wildcard for Adobe Illistrator files *.ai in this directory but can view everthing else in the dir which are all Adobe Acrobat files *.pdf and I already have it ignoring the index.php so that it doesn't list in the directory listing.  Right now it shows all *.ai and *.pdf files.

 

What do I use to filter out *.ai files?

 

if($file != "." && $file != "index.php" && $file != "..") {

 

Thanks to anyone that can tip me on this..  I tried % like you would for MySQL, * like almost anything uses, and _ like 1 character wildcard of MySQL and all of them don't do the gig.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.