Current URL with PHP

Posted by Christopher on Stack Overflow See other posts from Stack Overflow or by Christopher
Published on 2010-12-30T05:28:17Z Indexed on 2010/12/30 5:54 UTC
Read the original article Hit count: 427

Filed under:
|
|
|

I have a link shortener system (Yourls) set up so you can go to the short url with ?url=[xyz] (where [xyz] 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?

(I apologize if this is confusing)

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript