|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Make a search form from this data |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|