Jump to content

Cvs File Into Html File


3dhomejoe
 Share

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?

Edited by 3dhomejoe
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...