> Greetings:
> 
> Looking for a way to say *.php in this code:
> if ($file != ".htaccess" && $file != "." && $file != ".."    
> && $file != ANY PHP FILE)  
> 
> 
> I have tried *.php...
> 


separate the file extension from the $file
with code looking something like this:

$ext = substr($file,strrpos($file,"."));

if $file contains "test.php", then $ext now
contains ".php". so change your code to something like:

--snip--
$ext = substr($file,strrpos($file,"."));
if ($file != ".htaccess" && $file != "." && $file != ".."
 && $ext != ".php")

--snip--

good luck!

/Martin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to