XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

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 March 30th, 2004, 10:08 PM
cjhoward cjhoward is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 94 cjhoward User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 32 m 13 sec
Reputation Power: 5
Make a search form from this data

I'm trying to create a searchable real estate database with the following data which is pulled from another server:



<RETS ReplyCode="0" ReplyText="SUCCESS">
<DELIMITER value="1c"/>
<COLUMN>LIST_NOPROP_TYPEOFFICE_NAMEOFFICE_PHONE</COLUMN>
<DATA>0481793RNTBRADFIELD PROPERTIES, REALTORS210-555-4506</DATA>
<DATA>0483934RNTPRUDENTIAL DON JOHNSON CO.210-555-1766</DATA>
<DATA>0480375RNTCENTURY 21 UNITED - ACTION210-555-0021</DATA>
<DATA>0483974RNTTERRA RESIDENTIAL SERVICES210-555-9966</DATA>
</RETS>

I want to create the search form with PHP. How can this be done? The delimiters '' are like nothing I've seen anywhere. Anyone?

Reply With Quote
  #2  
Old April 1st, 2004, 07:57 AM
MattSidesinger's Avatar
MattSidesinger MattSidesinger is offline
Java PHP Oracle Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: C-Bus OH-IO
Posts: 204 MattSidesinger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 26 sec
Reputation Power: 5
Send a message via AIM to MattSidesinger
I am assuming the delimiter character is a File separator control character. 1c is hex for 28.

Have you thought about how you want to load the document? Do you want to load this document once and then hold it in memory or do you want to keep it on disk and parse it each time that it is searched?

With more info the forum can help make a decision:
1. How large will the file be ... is it expected to get larger? Max size?
2. How many of these searches be done in respect to time? 100 in a day? 10 every minute?
3. Does the information need to be real time or can we update the file daily or maybe hourly.
4. Do you have access to a database? We could truncate and load a table each time the we get the data. That way we won't have to parse it everytime and you will have a much faster way to search the document and you will have a query langauge to assist you.

Let us know, thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Make a search form from this data


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway