fpassthru
brefphp/bref
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Output all remaining data on a file pointer
fpassthru
(
resource $stream
):
int
if (isset(
$_GET
[
'img'
])) {
$fp
=
fopen
(
'https://bref.sh/img/logo-small.png'
,
'rb'
);
header
(
'Content-Type: image/png'
);
fpassthru
(
$fp
);
exit(
0
);
}
demo/http.php