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

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

Archived

This topic is now archived and is closed to further replies.

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