(php) retrieving url variable

I am working on a site with lots of videos, but i only want to use one file. I want it to leave the SRC as a variable and load the file variable from the url, like: videoplayer.php?file=file.wmv … can anyone help me with how to do this?