worldcomingtoanend Posted April 6, 2010 Share Posted April 6, 2010 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; ?> Link to comment https://forums.phpfreaks.com/topic/197751-include-external-or-remote-php-file-into-my-web-pageplease-help/ Share on other sites More sharing options...
aeroswat Posted April 6, 2010 Share Posted April 6, 2010 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. Link to comment https://forums.phpfreaks.com/topic/197751-include-external-or-remote-php-file-into-my-web-pageplease-help/#findComment-1037784 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.