xionhack Posted May 25, 2009 Share Posted May 25, 2009 Hello. I don't know if there is a way. But I would like to make a php script, that given a website, and a string, it will tell me in which position in google is that website when you type that string. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/159590-google-position/ Share on other sites More sharing options...
Daniel0 Posted May 25, 2009 Share Posted May 25, 2009 Run a Google search using the keywords. Check if it's on page 1. No? Check page 2. No? Check page 3? Time out after n pages and say it wasn't among the n*10 (there are 10 results per page). You'll want to look into things like curl and regular expressions. Quote Link to comment https://forums.phpfreaks.com/topic/159590-google-position/#findComment-841754 Share on other sites More sharing options...
xionhack Posted May 25, 2009 Author Share Posted May 25, 2009 I have no idea how to do that, can you explain me how to? Quote Link to comment https://forums.phpfreaks.com/topic/159590-google-position/#findComment-841763 Share on other sites More sharing options...
GingerRobot Posted May 25, 2009 Share Posted May 25, 2009 You'll want to look into things like curl and regular expressions. Why dont you try looking up those things first? Quote Link to comment https://forums.phpfreaks.com/topic/159590-google-position/#findComment-841764 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.