PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 13th, 2010, 03:39 PM
jleagle's Avatar
jleagle jleagle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 228 jleagle User rank is Sergeant (500 - 2000 Reputation Level)jleagle User rank is Sergeant (500 - 2000 Reputation Level)jleagle User rank is Sergeant (500 - 2000 Reputation Level)jleagle User rank is Sergeant (500 - 2000 Reputation Level)jleagle User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 12 h 16 m 10 sec
Reputation Power: 25
Send a message via MSN to jleagle
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/...sing-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.
__________________
JimEagle.com

Last edited by jleagle : October 13th, 2010 at 03:48 PM.

Reply With Quote
  #2  
Old October 14th, 2010, 03:22 AM
jleagle's Avatar
jleagle jleagle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 228 jleagle User rank is Sergeant (500 - 2000 Reputation Level)jleagle User rank is Sergeant (500 - 2000 Reputation Level)jleagle User rank is Sergeant (500 - 2000 Reputation Level)jleagle User rank is Sergeant (500 - 2000 Reputation Level)jleagle User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 12 h 16 m 10 sec
Reputation Power: 25
Send a message via MSN to 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.

Reply With Quote
  #3  
Old November 7th, 2012, 08:23 AM
chawkins24 chawkins24 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 1 chawkins24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 16 sec
Reputation Power: 0
Same issue

Quote:
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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Reading delimited data files

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap