Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> readdir(), odrazu mowie zem noob
Kreton
post
Post #1





Grupa: Zarejestrowani
Postów: 345
Pomógł: 3
Dołączył: 20.02.2005

Ostrzeżenie: (0%)
-----


Kod
<?php
$dh = opendir ("/Galeria/");
while ($file = readdir ($dh)) {
print "$file\n";
}
closedir ($dh);
?>


skrypt czyta wszytkie pliki w katalogu,
jestem dopiero pocztkowym programista wiec pomozcie:
wyskakuje bład

Kod
Parse error: parse error, unexpected $ in /home3/gi/gim3e/readdir.php on line 7


HELP

Ten post edytował Kreton 14.03.2005, 17:16:27
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 20:18