Jump to content

Google Search Clone Error, Notice: Undefined Variable: Results


dbzocchi

Recommended Posts

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

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.