subscribe.php 205 B

123456789101112
  1. <?php
  2. $fp = fopen('https://ntfy.sh/phil_alerts/json', 'r');
  3. if (!$fp) {
  4. die('cannot open stream');
  5. }
  6. while (!feof($fp)) {
  7. $buffer = fgets($fp, 2048);
  8. echo $buffer;
  9. flush();
  10. }
  11. fclose($fp);