Query string

Parts of URL

We see so many URLs everyday, but do we know what are the parts of an URL, what does each part means? In this post I will discuss the various parts of the URL. An URL may consists of as many as 6 parts. The different parts of the URL are: scheme://domain:port/path?query_string#fragment_id Some people refer …

Parts of URL Read More »

Get search query string from search engines using PHP

I have often come across situations when I would like to implement some functionality based on what the user searched for in a search engine like Google, Bing etc. The search query string is normally passed as GET variables ‘q’ or ‘query’. The function below will return the search query string. Note: Google has recently …

Get search query string from search engines using PHP Read More »