mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-12-26 19:52:30 +01:00
13 lines
205 B
PHP
13 lines
205 B
PHP
|
<?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);
|