01-06-2010, 02:10
Tak sobie ćwiczyłem w pe ha pie czytanie katalogów i mam problem ;C
24 linia to:
A tu cały kod:
Jeśli się komuś chce to poprawić to wielkie dzięki (:
Kod:
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /home/Gherthus/domains/gherthus.bee.pl/public_html/stuff/index.php on line 24
24 linia to:
Kod PHP:
echo "<a href="$file">$file</a>";
A tu cały kod:
Kod PHP:
<?php
$path = ".";
$handle = opendir($path);
$file = readdir($handle);
while ($file = readdir($handle))
{
if ($file != "." && $file != "..")
{
echo "<a href="$file">$file</a>";
}
}
?>