i try to open a txt file and print it's context using php and foreach construct
<html>
<body>
<?php
$file = fopen("list.txt", "r");
foreach (!feof($file)) {
echo fgets($file, 1024), "<BR>";
}
fclose ($file);
?>
</body>
</html>
could someone help to get the code working.