----------------------------------------
<?php
$filename = "nieuws.txt"
$fp = fopen("$filename", "r") or die("Kan $filenaam niet openen");
while ( ! feof($fp) )
{ $line = fgets( $fp, 1024 ):
print "<b> $line </b> <br>":
}
?>
----------------------------------------
Deze code staat in nieuws.php, in een directory onder windows xp waar
nieuws.txt ook staat. Ik heb wamp draaien. Het probleem is dat dit script
geen output geeft, wat ie normaal met print dus wel moet doen...Kan iemand
mij helpen?
MvG,
me

Likes:
![[PHP] waarom werkt file reading niet](https://www.webhostingtalk.nl/images/WHT_rd/misc/dT.png)
Quote
FeCd.18632$zL4.1563786@phobos.telenet-ops.be...