foreach( $filez as $f )
echo "<a href=\"files/$f\">$f</a>
";

slash normale non backslash..