jeudi 29 octobre 2015

php tiny url not linking correctly. My website url gets appended to tinyurl.com and I get a 404 error

This is my tiny url function

private function getTinyUrl($url) {
    return file_get_contents("http://ift.tt/x0MBwI".$url);
}

the output is something like http://ift.tt/1P8PArG so thats good.

But when I use the url, it takes me to

http://ift.tt/1Rhe2Gt

and i get a 404 not found. What to do?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire