Back to DFS's Workshop Page
Back to Agenda Page
Back to the Project Page
Displaying Data from a File in a Table
For this problem, you are to cannibalize any available code and write a script which will do the following.
The PHP Script: displaytable.php
- Read baseball player information from a file
- Find on the WWW the Blue Jays with the five (5) highest batting averages for the current or most recent year.
- Place each player's first and last names, at bats and hits in a text file, one player per line, separating the items of information with a vertical bar character, |. Click here for a sample.
- To learn about different techniques for reading in the data, click here.
- Calculate the batting average (At Bats / Hits) for each player.
- Display the data in an HTML table.
To see how this could work, view the HTML source code of this possible analogous solution.
© 2006 DFStermole
Created 19 Nov 06
Last Modified 26 Nov 06