Parsing flat text file(Special functions?)
Posted: Fri Feb 03, 2006 2:03 pm
I'm working on a script that will read data from a flat text file that is generated by Gallery 1.5. The data is arranged much like an array. Simplified example: Album{AlbumItem{Image{Properties}Properties}Properties}
Actual file: http://www.nonamestudios.com/albums/baw/photos.dat
Cut and broken into multiple lines for understanding: http://www.nonamestudios.com/albums/baw ... .dat.split
Is there some PHP functions that would make life simple in parsing that information? I really don't to start building some super complex parsing algorithm and find out one or two functions could have done it.
(Personally I would to just find where in the Gallery script it is doing this, but that has proven to be impossible.)
Actual file: http://www.nonamestudios.com/albums/baw/photos.dat
Cut and broken into multiple lines for understanding: http://www.nonamestudios.com/albums/baw ... .dat.split
Is there some PHP functions that would make life simple in parsing that information? I really don't to start building some super complex parsing algorithm and find out one or two functions could have done it.
(Personally I would to just find where in the Gallery script it is doing this, but that has proven to be impossible.)