Student Websites

Welcome to the student Websites. This is the place where we can come and take a peek at our peers' Websites.

"; // open the file for reading if ($fh = fopen("$file", 'rb')) { // loop through the file by reading 1000 bytes or one line // whichever comes first with each iteration. // The data being read is broken into an array // using the | to indicate the separate elements. $counter = 0; while ($line = fgetcsv($fh, 1000, "|")) { $counter++; $name=$line[1]; if ($counter < 6) { // display sites echo <<$name EOF; } else { $counter = 1; echo << $name EOF; } } } echo ""; ?>