Web Resources"; $fd = @fopen ($fname, "r"); $count = 0; if ($fd) { echo "

Chapter ".$chapter."

"; while (!feof ($fd)) { $buffer = fgets($fd, 4096); echo '

'; echo $buffer; echo '

'; $count++; if ($count > 1000) { echo 'Too many lines'; break; } } fclose ($fd); } else { echo "

Sorry -- Can't find that file.



"; } } else { echo "

Web Resources - All Chapters

"; for ($i = 1; $i <=16; $i++) { $fname = 'web-resources/web-resources'.$i; $fname .= ".htm"; $fd = @fopen ($fname, "r"); $count = 0; if ($fd) { echo "

Web Resources - Chapter ".$chapter."$i

"; while (!feof ($fd)) { $buffer = fgets($fd, 4096); echo '

'; echo $buffer; echo '

'; $count++; if ($count > 1000) { echo 'Too many lines'; break; } } fclose ($fd); } else { echo "

Sorry -- Can't find that file.



"; } } } ?>

Web design by  Unicorn Web Works