Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
[PHP] expecting ',' or ';'
#1
Tak sobie ćwiczyłem w pe ha pie czytanie katalogów i mam problem ;C
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>";
}
}
?>
Jeśli się komuś chce to poprawić to wielkie dzięki (:
Odpowiedz


Wiadomości w tym wątku
[PHP] expecting ',' or ';' - przez Gherthus - 01-06-2010, 02:10
RE: [PHP] expecting ',' or ';' - przez dziamber - 01-06-2010, 02:30
RE: [PHP] expecting ',' or ';' - przez Gherthus - 01-06-2010, 02:33
RE: [PHP] expecting ',' or ';' - przez razorskate - 02-06-2010, 17:49
RE: [PHP] expecting ',' or ';' - przez dziamber - 02-06-2010, 22:56
RE: [PHP] expecting ',' or ';' - przez Gherthus - 04-06-2010, 18:13
RE: [PHP] expecting ',' or ';' - przez Folmi - 19-06-2010, 23:20
RE: [PHP] expecting ',' or ';' - przez KeeL - 19-06-2010, 23:55
RE: [PHP] expecting ',' or ';' - przez Jupiter - 20-06-2010, 00:22
RE: [PHP] expecting ',' or ';' - przez Folmi - 20-06-2010, 01:23
RE: [PHP] expecting ',' or ';' - przez 3lanc - 27-06-2010, 21:44

Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości
Sponsorzy i przyjaciele
SeoHost.pl