Jeffro Posted January 21, 2012 Share Posted January 21, 2012 I've always used this query but it no longer works: $data=file_get_contents('http://clients1.google.com/complete/search?hl=en&q='.$keyword); For more info, I posted about this here last year. Now, the query no longer works. Is there any other way to produce the results or is it just no longer going to work for me? Quote Link to comment https://forums.phpfreaks.com/topic/255475-question-on-file_get_contents/ Share on other sites More sharing options...
vivekanand25 Posted January 21, 2012 Share Posted January 21, 2012 [quote author=J I think the URL changed so thats why your cade is not working now. You need to take some good API for use it always Quote Link to comment https://forums.phpfreaks.com/topic/255475-question-on-file_get_contents/#findComment-1309840 Share on other sites More sharing options...
AyKay47 Posted January 21, 2012 Share Posted January 21, 2012 I've always used this query but it no longer works: $data=file_get_contents('http://clients1.google.com/complete/search?hl=en&q='.$keyword); For more info, I posted about this here last year. Now, the query no longer works. Is there any other way to produce the results or is it just no longer going to work for me? if the parameter given is a viable URL, this will work. Quote Link to comment https://forums.phpfreaks.com/topic/255475-question-on-file_get_contents/#findComment-1309851 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.