Jump to content

include external or remote php file into my web page...please help


Recommended Posts

i have done the following:

 

1). I have created a search engine and its in two parts. 

2). the first which is a form and the second which displays the results.

3).  The form sends the search query to a php file on my server and it opens that file in its own window (which is what I dont want becoz it distances the search results from the web site and )....

4). now I am trying to get the results to display into my website and  for this I have created the php below, but my problem now is that even if i enter my search queries they dont link to the php file below....

5). the php file below only gets displayed if I literally access that page with the php code but

6). I need it to be in such a way that if  auser enters the search query the the code below gets activated and shows up with the results within the web page.

7). Thank you for your help.

<?php
$handle = file_get_contents("http://www.ladiesaregood/search.php", "r");  
echo $handle;
?>

 

Wtf? I don't fully understand but it sounds like you need to look into scraping assuming that their search uses GET variables then you could just scrape a link to the search results. The only other way would be if the other website had an API you could use.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.