Jump to content

Cvs File Into Html File


3dhomejoe

Recommended Posts

Hello,I have this cvs file from http://eq2players.station.sony.com/guilds/...guildId=2696108 im trying to get a script that will read that and only display info about a guild member, what rank they are and what level without the other stuff in there. and then save it into a html fileany ideas?Thanks3dhomejoeEdit: the save to a html file was a mistake, i edited the wrong post on the wrong forums... I want it to be able to display the results after it reads the file...Did I lose anyone?

Link to comment
Share on other sites

http://us.php.net/manual/en/function.fgetcsv.phpBut why do you want to save a HTML file after that?
Ok, ive been looking at that but what im trying to find out is how to get it to read just what i want it to and not everything.Side note: I have a script that reads all of that information, but its on my other computer, I can post the code in the morning. If that will helpThanks3dhomejoe
Link to comment
Share on other sites

Ok that file is formatted weirdly - I suppose you're better off using file_get_contents to just dump the whole thing into a string, formatting it for plain-text CSV correctly, preg_matching the correct member and then using http://www.php.net/manual/en/function.str-getcsv.php.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...