Moderators: macek, egami, gesf

<?
$d = dir("./");
while (false !== ($entry = $d->read())) {
if(substr($entry,-4)=="html") {
print "<hr>\n";
include($entry);
}
// print $entry."\n";
}
$d->close();
?>

$dir = "./";
while($file = each($dir)) {
if (substr($file,-4) == "html") print "<hr>\n".htmlspecialchars(file($file));
}
Users browsing this forum: No registered users and 2 guests