☰
Debian Codegraph
@
2.27.0-1
2.24.0-1
/
/
examples
/
subscribe-php
/
subscribe.php
☽
☼
examples/subscribe-php/subscribe.php
code
plain
raw
Apache-2.0
or
GPL-2
2022 Philipp C. Heckel.
debian/copyright
1
<?php
2
3
$fp = fopen('https://ntfy.sh/phil_alerts/json', 'r');
4
if (!$fp) {
5
die('cannot open stream');
6
}
7
while (!feof($fp)) {
8
$buffer = fgets($fp, 2048);
9
echo $buffer;
10
flush();
11
}
12
fclose($fp);