you can use strrchr to find the extension, like this:
if ($file != .htaccess $file != . $file != ..
strrchr($file,.) != .php)
Try to see php manual, probably i mispelled it.
--
Federico
[EMAIL PROTECTED]
--
Christopher Cm Allen [EMAIL PROTECTED]
I'd use preg_match().
Something like should do the trick:
if ($file != .htaccess $file != . $file != ..
!preg_match(/(.*)\.php/i, $file))
Niklas
-Original Message-
From: --- [mailto:[EMAIL PROTECTED]]
Sent: 14. syyskuuta 2001 11:09
To: [EMAIL PROTECTED]
Subject: [PHP] R: File
2 matches
Mail list logo