title: Current URL with PHP
body: <p>I have a link shortener system (Yourls) set up so you can go to the short url with <code>?url=[xyz]</code> (where <code>[xyz]</code> is the url you wan to shorten) added to the end will shorten the URL.  I want to add a link to a separate page (on my MediaWiki wiki) that shortens the permalink of the page that it is on.  I need to add the button to my template in a way that will add the URL of the current page to the link.  MediaWiki is a PHP platform, so that is preferred (but JavaScript is fine too).  How can I do this?</p>
  
  <p>(I apologize if this is confusing)</p>
  
  <p><strong>UPDATE:</strong> I am terrible with PHP, so sorry.
  I just put </p>
  
  <pre><code>&lt;?php echo'&lt;a href="http://sumov.co.cc/?url=".$_SERVER["REQUEST_URI"]; class="buttonlink ui-state-default ui-corner-all"&gt;&lt;span class="ui-icon ui-icon-newwin"&gt;&lt;/span&gt;Support &amp;rarr;&lt;/a&gt;'; ?&gt;
  </code></pre>
  
  <p>and that just went to <code>http://sumov.co.cc/?url=</code> (sumov.co.cc is my short link).</p>