View Single Post
Old 01-16-2005, 09:29 PM   #1 (permalink)
dflowers
Registered User
 
Join Date: Jan 2005
Posts: 4
dflowers is on a distinguished road
CSV and PHP help

I need to fetch a csv file that is automatically updated on a server via an url. For example, I need to connect to http://www.domain.com/folder/file.csv and then add the column titles because the csv file does not include column titles. I then need to filter any duplicate rows, and limit the number of rows displayed to say 5, and display the data in a table to be used on a php page. It would also be nice if I had the option to expire rows after a set period of time, say 10 minutes. Finally, I need the php page to refresh every 60 seconds and check for updates to the csv file. I am a webmaster for a fire department and I am trying to add a page that uses a csv file from the CAD server hosted by the county government to display the most recent fire calls. I am not very well versed in scripting, but with a little bit of example code and explanations, I am sure I can figure it out. Any help would be very much appreciated. Thanks, Dorian
dflowers is offline   Reply With Quote