I would like to know how to display text in PHP from a csv text file or xml file - which ever is easier. I need to be able to display the text in a table.
* Open the file using fopen().
* Read lines of the file using fgets().
* Explode the comma seperated string(line) with explode().
* Use foreach and display the columns.
Your best bet would be to go to that php.net site viv5 linked to above, and learn how each of those commands works, then you'll know what to do. If you're looking for a script already written, try a Google search or a script library site like Hotscripts. Have you also search Sitepoint? Lots of articles here, too. Then you can come back here with specific questions if you want specific answers.
Bookmarks