SitePoint Sponsor |
|
User Tag List
Results 1 to 7 of 7
-
Jun 19, 2009, 00:28 #1
- Join Date
- Jun 2009
- Posts
- 4
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
How to fetch search results from another site?
HI I am a new bie dont know where to post this topic.
Actually I want to write a php code which could fetch the flight informations from various airlines sites. These sites have a form in which user can enter information and search the flight. I want to display those results in my site when a user comes to my site and search about flight. For eg. user want to search flights from city-1 to city-2 then he enter the information on my site and my script should search flights according to that information on various airlines sites and display the results with the tag of which ailines is providing this flight.
Could any one plz suggest how to do it?
-
Jun 19, 2009, 01:19 #2
The PHP cUrl functions might be a good start:
http://php.net/curl
it's an library written especially to access remote webpages.
-
Jun 19, 2009, 02:19 #3
- Join Date
- Jun 2009
- Posts
- 4
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
Jun 19, 2009, 02:38 #4
- Join Date
- May 2009
- Posts
- 65
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Even I am also not sure about this,but how about taking all the data in XML format and then display the result on your site.
Noddy
-
Jun 19, 2009, 02:44 #5
- Join Date
- Jun 2009
- Posts
- 4
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
Jun 19, 2009, 04:03 #6
And it is not possible to send the search parameters through url?
example:
www.airline.com/?destination=moon&date=june
then through cUrl you can fetch the results. Although I'm not sure if all airlines support that kind of parameter sending.
-
Jun 19, 2009, 13:07 #7
- Join Date
- Jun 2009
- Posts
- 4
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Not all sites supports this feature. Many of the sites uses POST method or even javascript to process the search results i.e. the URL doesn't changes while searching.
Can I query the file which is being called by form used by flight sites during searching by using POST/GET or call the functions used by flight sites for searching by any means??
Then it would be very easy as i would call the function directly and fetch the results.
Bookmarks