Lets look at the following youtube url :
Code: Select all
http://www.youtube.com/watch?v=O7EcT5YzKhQ&feature=relmfu
In this url there are two url variables; 'v' and 'feature'. The video id is the 'v' value, in this case 'O7EcT5YzKhQ'. Where you see an ampersand '&' starts another url variable named 'feature', and so on and so forth. Depending on the video and how you got to the page there may be more variables in the url and they could possibly be in a different order.
You can think of the url as a group of messages to your browser:
Code: Select all
youtube.com/watch (domain and file) ? (? indicates there are some variables coming)
v=O7EcT5YzKhQ & (indicates another variable coming)
feature = relmfu & (and another)
guitars = chickmagnets
[ youtube ]O7EcT5YzKhQ[ /youtube ]
(spaces added around the brackets so that the forum won't actually embed this video)
That concludes our programming lesson for the day. Enjoy!