In article <000c01c09ac2$7ed27ab0$0100a8c0@fusion>, [EMAIL PROTECTED] 
("Fusion") wrote:

> while ($file name = readdir($dir)) {
> 
> if (($file name != ".")
>  && ($file name != "..") 
>  && ($file name !="*.php")
>  && ($file name !="main.gif")
> 
> )  
> {
> 
> how come that still displays all the *.php files? 

Are you trying to use '*' as a wildcard character?  Because right now, it's 
only looking to exclude a file with the exact, literal name '*.php'--not 
files like 'anything.php'.  Check out the regular expression functions, 
either the ereg_* family or preg_*, to do pattern matching.

-- 
CC

-- 
PHP Database 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