Is there a PHP call for "current url" string?
Is there such a thing as a variable that can be included in a PHP document that would translate into the full url of the current page?
For example, at the bottom of every CNN news article, there's a Facebook link designed to share the URL of the current page on Facebook. I doubt this link is hard-coded. That's got to be a variable.
How would I go about doing that? In other words, to replace this :
<a href="http://www.facebook.com/share.php?u=http://domain.com/file.php">
With this :
<a href="http://www.facebook.com/share.php?u=('$CURRENT_URL')">
(Or something like that.)
What would the syntax be?
