dbzocchi Posted November 27, 2012 Share Posted November 27, 2012 I am currently using greekdevs google clone script but for some reason all their versions have the same error only the the web search if you type more than one word it doesn't bring up and results, I enabled PHP errors and it brings up "Notice: Undefined variable: results in" I've been through the code again and again but I am not experienced enough to fix this problem and since they are no longer updating this project I am hoping someone on here can help me fix this please. This is the link to the project: http://greekdev.blogspot.co.uk/2012/09/google-clone-script.html if anyone wants to download it and have a look for the error thanks in advance Quote Link to comment Share on other sites More sharing options...
MDCode Posted November 27, 2012 Share Posted November 27, 2012 (edited) Hardly anyone will download a file to look at your error. Post the relevant code here. Especially since no other links work on the site. Edited November 27, 2012 by SocialCloud Quote Link to comment Share on other sites More sharing options...
rbrown Posted November 27, 2012 Share Posted November 27, 2012 1) The error is you need to define the variable first... 2) When you do a google search, the search term must have + for the spaces if the words have spaces. Do a search on google for various terms with spaces and quotes and with outspaces and quotes and look at the url you will see how you need to format the search results. FYI if you try and run this or a scrape off a server they WILL block your server... They check requests by IP address and number of requests... You will get a bot block screen. Been there done that... Quote Link to comment 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.