\n"; $teller = 0; $db_file = fopen ("../databases/astronomie_fotogallerij.db", "r"); $regel = fgets ($db_file); while (! feof ($db_file)) { $teller = $teller + 1; $nummer_s = (string) $teller; $nummer_s = substr ("00000", 0, 5 - strlen ($nummer_s)) . $nummer_s; $format = substr ($regel, 0, 3); $regel = substr ($regel, 6, 999); $regel = substr ($regel, 0, strpos ($regel, "|") - 1); echo "\n\n"; echo "" . $teller . "\n"; echo "\"\"
(credits: NASA/ESA)\n"; echo "" . $regel . "\n"; echo "\n"; $regel = fgets ($db_file); } fclose ($db_file); echo "\n\n\n"; include '../php/footer.php'; ?>