[EMAIL PROTECTED] (Craig Westerman) wrote:

 > while ($file_name = readdir($dir))
>
 >  if (($file_name != ".") && ($file_name != ".."))
>
 >    $file_list .= "$file_name";
 >  }
>
>
 > This excludes . and .. files. How would I exclude files that contained
 > pv.
>
 > Thus filenamepv.html would be excluded, but filename.html would not?

look at the strstr() function, that can check if pv is there and not
like pcomethingv, then you prolly need a regexp for that.

-- 
Henrik Hansen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to