I need a php script that will log a visited URL to a file.
For example, if someone visits
http://www.mysite.com/user.php?UserName
Then "UserName" is logged to the text file.
I'm completly new to php so I don't even know the term to search for regarding the question mark in the URL (if that makes sense).
Any help on this would be much appreciated

Cheers