From 2d136ecd7c64f8c57d073fb1db17ab6cc63c6e00 Mon Sep 17 00:00:00 2001 From: Knut Erik Hollund Date: Sun, 21 Sep 2014 17:53:28 +0200 Subject: [PATCH] Proxy example file utilising qttr.at shortener The file is an example how instances with https can utilise qattr.at. --- shortener.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 shortener.php diff --git a/shortener.php b/shortener.php new file mode 100644 index 0000000..e24b5da --- /dev/null +++ b/shortener.php @@ -0,0 +1,26 @@ + knuthollund@quitter.no +GitHub: => https://github.com/knuthollund + +*/ + + + $query = $_SERVER['QUERY_STRING']; + $shortenerUrl = 'http://qttr.at/yourls-api.php?' . $query; + print file_get_contents($shortenerUrl); + + +?>