dimitris Posted July 8, 2008 Share Posted July 8, 2008 Hi all, I'm trying to do the following: send a request for some data to some website and display the output in a new page, without displaying the search website. For example, I know that I can search at google for "phpFreaks" like this header("Location: http://www.google.com/search?q=phpFreaks"); But how can I obtain, the results internally, in this case the first one or two url addresses and either redirect directly to one of them or use some other way the result? Any ideas? Link to comment https://forums.phpfreaks.com/topic/113667-data-request/ Share on other sites More sharing options...
DarkWater Posted July 8, 2008 Share Posted July 8, 2008 You can use file_get_contents("url") to grab to output of the page and then you can parse it for the info you need. Link to comment https://forums.phpfreaks.com/topic/113667-data-request/#findComment-584133 Share on other sites More sharing options...
The Little Guy Posted July 8, 2008 Share Posted July 8, 2008 cURL functions, or fread will work. Link to comment https://forums.phpfreaks.com/topic/113667-data-request/#findComment-584169 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.