i'm a little confused.
$l = $_REQUEST['l'];
$arr = get_headers($l);
foreach($arr as $a => $b){
if($a == "6"){
$r = str_replace('Location: ', '', $b);
}
}
readfile($r);
this code works fine on my local apche server but when i try it on a free web host (000webhost) i get an empty response. even when i echo a random string it doesn't give a response until i remove the readfile. i have also tried replacing the readfile with file get contents as well as the combination of fopen and fpassthru. ideas?