I have the url http://www.wolframalpha.com/entities/zip_codes/AL_36574/9t/ej/3z/
when you go to this url it go to http://www.wolframalpha.com/input/?i=AL+36574 here.
Now i want this url from the previous one. therefore i created the code like this
<?php
$url="http://www.wolframalpha.com/entities/zip_codes/AL_36574/9t/ej/3z/";
$headers = get_headers($url, 1);
// will echo http://www.wolframalpha.com/input/?i=AL+36574
echo $headers[0];
?>
but it does not works Plz help me