[PHP] getting the search words from a google query
hey, i am a beginner at php and i need your help. i have a list of urls visited on a particular day in mysql database. using php i find out all the websites that have a google search. now i need to strip apart the google query from the entire url. i think parse function is used for it but i am not sure how it is used etc. if possible plz send me a small snippet as an example. cheers. - Bits-Pilani Goa Campus (http://www.bits-goa.ac.in) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] getting the search words from a google query
On Tue, 2009-08-18 at 21:23 +0530, MURTUZA KUTUB Â wrote: hey, i am a beginner at php and i need your help. i have a list of urls visited on a particular day in mysql database. using php i find out all the websites that have a google search. now i need to strip apart the google query from the entire url. i think parse function is used for it but i am not sure how it is used etc. if possible plz send me a small snippet as an example. cheers. - Bits-Pilani Goa Campus (http://www.bits-goa.ac.in) Have you looked at the URL strings themselves? You can see that with a Google query, the search words appear as part of the q= part of the string. Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] getting the search words from a google query
can you provide a sample URL that you have in your mysql database ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php