#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    228
    Rep Power
    25

    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...


    Thanks.
    Last edited by jleagle; October 13th, 2010 at 03:48 PM.
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    228
    Rep Power
    25
    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.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

    Same issue


    Originally Posted by jleagle
    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.
    I'm coming up against the same issue. Do you recall what PHP settings you changed?

IMN logo majestic logo threadwatch logo seochat tools logo