I'm a new comer in web development, so I would like to clarify one doubt, I have found some websites URL part like /index.php?option=com_content&view=article&id=47&Itemid=62 . What is this mean by in php web pages and how to get updating the index.php web page with different contents while clicking on different menu items. I know how to pas arguments while calling a URL, but my doubt is in option=com_content&view=article. Please clarify my doubt. Please give more information about this.
2 Answers
Those are variables which will appear in the $_GET array (and often the $_REQUEST array -- $_REQUEST usually contains everything that $_GET does, but there are some exceptions). They are normally (but not always) put there by a form with "get" as the method attribute in HTML or they are put there in some anchor href attribute directly.
If you have option=com_content&view=article, then $_GET['option'] will equal "com_content" and $_GET['view'] will equal "article"
If you're interested in learning more, I recommend the tizag tutorial, which goes into a little more depth than I have.
4those are URL variables, they are variables you can pass to a page via the URL fancy that
PHP.NET <-- this is the best php resource (imo). good place to start. specifically look in Predefined Variables for the $_REQUEST/$_GET server variables, which is what your question is dancing around.
You may also want to read W3Schools PHP Tutorial [EDIT:: apperently this is not a good place to start. still, get a good tutorial on php and the rest can be found @ php.net
and to the rest.. how about we provide a better tutorial to start... I learned from (a very antiquated) oreilly php book - you can get the latest @
3