Searching XML documents with PHP

Reply

Join Date: Jan 2006
Posts: 15
Reputation: Virii is an unknown quantity at this point 
Solved Threads: 0
Virii Virii is offline Offline
Newbie Poster

Searching XML documents with PHP

 
0
  #1
Mar 14th, 2006
So I want to create a website that allows me (or others) to type in a words and select a relevent search, and have it search multiple XML pages on another server (IE: they search my site and are given 3 other sites to go to with that relevent information).

The XML documents are setup and available on the other websites server but I want to access it through mine.

How can I do this and how can I use PHP to allow them to search through, and then display the relevent information?
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 355
Reputation: DanceInstructor is an unknown quantity at this point 
Solved Threads: 14
DanceInstructor's Avatar
DanceInstructor DanceInstructor is offline Offline
Posting Whiz

Re: Searching XML documents with PHP

 
0
  #2
Mar 14th, 2006
Are you going to use PHP4 or PHP5? I think PHP5 is supposed to have more powerful XML parsing functions, but to be honest I don't know an awful lot about XML.
Clear Mind Hosting and Web Design

If I've helped you please consider adding to my reputation.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 354
Reputation: Troy is an unknown quantity at this point 
Solved Threads: 5
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Re: Searching XML documents with PHP

 
0
  #3
Mar 15th, 2006
Whether you are using PHP4 or 5, I have 2 PHP classes that will give you almost everything you need. They come with LOTS of code comments and clear examples.

class_http.php - Use this to pull the documents from the remote servers. Includes a caching feature to make you a good neighbor.
http://www.troywolf.com/articles/php/class_http/

class_xml.php - Use this to parse and access the XML data structure.
http://www.troywolf.com/articles/php/class_xml/

These 2 classes can be combined to build tools such as RSS Readers and WebDAV Interfaces to Microsoft Exchange Server.
Troy Wolf is the author of SnippetEdit. "Website editing as easy as it gets." IX Web Hosting
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 142
Reputation: einfoway is an unknown quantity at this point 
Solved Threads: 2
einfoway's Avatar
einfoway einfoway is offline Offline
Junior Poster

Re: Searching XML documents with PHP

 
0
  #4
May 29th, 2007
Thanks it worked for me i was looking for same. Just want to know if i have to search in XML what would be best way.

I know i can do search when i have all values in array in php. But i think to load full xml in array and then search would be long and not cool method to do so.

Do wehave anything that will help me to show only what i want to pick from XML lets say i want to pick all entries form xml starting with A or Z ?
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 57
Reputation: chand. is an unknown quantity at this point 
Solved Threads: 0
chand. chand. is offline Offline
Junior Poster in Training

Re: Searching XML documents with PHP

 
0
  #5
Sep 7th, 2009
Originally Posted by Troy View Post
Whether you are using PHP4 or 5, I have 2 PHP classes that will give you almost everything you need. They come with LOTS of code comments and clear examples.

class_http.php - Use this to pull the documents from the remote servers. Includes a caching feature to make you a good neighbor.
http://www.troywolf.com/articles/php/class_http/

class_xml.php - Use this to parse and access the XML data structure.
http://www.troywolf.com/articles/php/class_xml/

These 2 classes can be combined to build tools such as RSS Readers and WebDAV Interfaces to Microsoft Exchange Server.
Hi Troy,

I need little help like that, I have a flash flip book which had to use php with xml at the backend. my images for flipbook are saved in xml file and I load these into the flipbook using flash parser, to parse the xml document. Now the problem is that I had tabs which is used to flip the pages. But when we drag the tabs it also exchange the linking reference with the tab by which we exchange the tab. for example previously if the tab1 links with pages 1/2 and when we exchange it with the position of the tab2 which controls the pages 3/4 now this must be exchanged with the pages 1/2 because I want to use tabs to sort the pages in the book. And for that I think it had to replaces the xml nodes every time I mone the tab to the new position. And this could be done in the php, but I haven't any idea how to do it. Please help me in this matter.

My sample flipbook is here. http://74.213.174.176/wasim/mdbook/sample.html

Thanks
chand
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC