错误324 Empty_response仅在具有fpassthru,readfile,file_get_contents的免费webhost上

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?

It seems like the readfile() functionality is currently disabled on the web host you're using, try using another host which support this functionality or you better ask the free host support team to activate this functionality.