[PHP] excluding files

2002-02-28 Thread Craig Westerman
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? Thanks Craig [EMAIL PROTECTED]

Re: [PHP] excluding files

2002-02-28 Thread Bas Jobsen
if (($file_name != .) ($file_name != ..) !eregi([a-z0-9]+pv\.html,$file)) Op donderdag 28 februari 2002 16:32, schreef Craig Westerman: while ($file_name = readdir($dir)) if (($file_name != .) ($file_name != ..)) $file_list .= $file_name; } This excludes . and .. files. How