Ok, basically i want to convert all my news from cutenews in to a mysql database, if you didnt know cutenews is stored in a txt file called news.txt,
I was just looking at it, and its layed out like this:
unixtime|username|title|shortstory|longstory||||
So, first is the unix time, then | then username who submitted it, then |, then news title, then |, then short story, then |, then longstory, and then each article is seperated by ||||,
Now, how do i get it to explode them, and then put each one as a variable?
i.e. what is the code to explode it, and then make each one a variable? i.e unixtime, username etc.?
Question
timsweb
Hey,
Ok, basically i want to convert all my news from cutenews in to a mysql database, if you didnt know cutenews is stored in a txt file called news.txt,
I was just looking at it, and its layed out like this:
unixtime|username|title|shortstory|longstory||||
So, first is the unix time, then | then username who submitted it, then |, then news title, then |, then short story, then |, then longstory, and then each article is seperated by ||||,
Now, how do i get it to explode them, and then put each one as a variable?
i.e. what is the code to explode it, and then make each one a variable? i.e unixtime, username etc.?
Thanks, Tim
Link to comment
Share on other sites
4 answers to this question
Recommended Posts