1
0
Fork 0
forked from mirrors/ntfy
ntfy/examples/subscribe-php/subscribe.php

13 lines
205 B
PHP
Raw Normal View History

2021-12-04 01:38:21 +00:00
<?php
$fp = fopen('https://ntfy.sh/phil_alerts/json', 'r');
if (!$fp) {
die('cannot open stream');
}
while (!feof($fp)) {
$buffer = fgets($fp, 2048);
echo $buffer;
flush();
}
fclose($fp);