This is my tiny url function
private function getTinyUrl($url) {
return file_get_contents("http://tinyurl.com/api-create.php?url=".$url);
}
the output is something like http://tinyurl.com/nj76pbs so thats good.
But when I use the url, it takes me to
tinyurl.com/mywebsite.com/code?=fqhfkqhiurhg98y
and i get a 404 not found. What to do?