
I've received an interesting assignment. My Client wants to have a php page created that will proccess comma or tab seperated values from a text file or rich text file format. It would break the values down and reorganize them on a website.
I'm trying to get a firm grasp on how this should be set up if possible at all. I have two thoughts on the subject, if anything thinks I have it right or has a better idea, please tell me - as clearly as you can - THANKS!

Idea 1 - The php form would be conditioned to dynamically create a variable for each item between the commas, it would then dynamically generate an html document with the items filled in. The proccess would involve an upload form of some sort that would allow him to use a text or rtf file from his desktop. I'm guessing it would read the data and dump the form after the pages where created.

Idea 2 - The upload form would store the file on the server. A php page is setup that would automatically scan the document whenever a person views that webpage. Since the page is already uploaded and saved to the server, One php page would be needed to read the contents generate and generate a page that could set amounts of information on the page, say 5 entries at a time.
I'm thinking the second idea is the better one, it is easily updatable as only the text file needs to be replaced to update the content. I'm just not sure how I could get the php code to read the content of the document and pull out comma separated values from it.
Thanks again,
