не получаются ссылки на файлы из каталога
текст index.php
<html><head><title><? ?></title></head>
<body>
<?
$dir = opendir (".");
while ($file = readdir ($dir))
{
echo " <а href = \"$file\">$file</a><br>";
}
closedir ($dir);
?>
</body></html>
в адресной строке http://localhost/index.php
браузер выводит слудущую чушь
<а href = ".">.
<а href = "..">..
<а href = "!readme!.txt">!readme!.txt
<а href = "1356_1356.zip">1356_1356.zip
<а href = "1358_1358.zip">1358_1358.zip
<а href = "2260_2260.zip">2260_2260.zip
<а href = "addrec.php">addrec.php
<а href = "aspchat">aspchat
<а href = "Chat">Chat
<а href = "data">data
<а href = "data.txt">data.txt
<а href = "form.html">form.html
<а href = "forum">forum
<а href = "gbook.zip">gbook.zip
|