October 13th, 2010, 03:39 PM
Reading delimited data files
I have to parse a BLM file which looks like this: http://www.rightmove.co.uk/ps/pdf/guides/V3TestFile.blm
A BLM file is a comma delimited text file that Rightmove created, its become an industry standard.
I managed to find a PHP class that converts the file into an array which is perfect, except the file which I received today is very slightly different to the one I linked above. When i run it through the class i get this error: "No Data Found"
The class i used is here: http://kodegeek.wordpress.com/2010/0...ing-php-class/ and here is the BLM i am trying to parse: http://pastebin.com/raw.php?i=eRPmkkGz
The only differences I can see is the EOR is "~" in one and "|" in the other.... and "Property Count : *" is missing in one.
There is also a zip class purely because the BLM comes zipped.
Any help would be great trying to change the class to understand the BLM file I am receiving...
Last edited by jleagle; October 13th, 2010 at 03:48 PM.
October 14th, 2010, 03:22 AM
Sorry to bump, but this is now solved, it was down to a PHP setting being turned off and producing no errors letting me know. So the class works fine. Thanks.
November 7th, 2012, 08:23 AM
I'm coming up against the same issue. Do you recall what PHP settings you changed?
Originally Posted by jleagle