I think it's almost done. Now I need to skip the 'fopen' and 'fwrite' lines if there are no results between '"file": "http://', '"');
$url = file_get_contents('http://web.com');
$url = get_string_between($url, '"file": "http://', '"');
$file = fopen("web_url.txt", "w");
fwrite($file, $url);
$file = file_get_contents('web_url.txt');
header("Location: http://$file");
Any idea?