Attempt to rewrite the code

This commit is contained in:
Yehuda Eisenberg
2020-12-09 18:33:00 +02:00
parent eb6cf93a6b
commit e028617c4e
23 changed files with 132 additions and 1738 deletions

19
g.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
@ini_set('zlib.output_compression', 'Off');
@ini_set('output_buffering', 'Off');
@ini_set('output_handler', '');
header('HTTP/1.1 200 OK');
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename=random.dat');
header('Content-Transfer-Encoding: binary');
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
$data = openssl_random_pseudo_bytes(1048576);
$chunks = 4;
for($i = 0; $i < $chunks; $i++){
echo $data;
flush();
}
?>