My mySQL database often has "Too many connections" errors because it is shared on a server with about thirty people and many of them have (and some doubly) installed phpNuke, which heavily uses these. So my database has about as much as it can have on it right now, which leads me to my question:
How can I call different bits of info from a text file? For instance, here is an example text file:
news.txt:
|11.12.2002|Helios|Didnt update much today, just trying to get a script debugged|11.13.2002|Jeff|Got some new stuff in the music section today|
Then I would like a PHP news script to put this all onto a page, where it would have a header cell in a table say "News for 11.12.2002, Posted by: Helios" and then below that it would have my update, "Didnt update much today, just trying to get a script debugged" then it would have another table with the header cell saying the date 11.13.2002, Posted by: Jeff, and then his message, etc. This does not have to be verbatim like that I just want to know how to seperate different pieces of info into different arrays. I know XMB forums do this with their template.xmb file. An piece of example code is great, I just need to know very basically how to do it, I don't need that code above. Thanks in advance,
Helios