mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-06-15 00:53:18 +02:00
Continued docs
This commit is contained in:
parent
7ba268887b
commit
246061829b
17 changed files with 421 additions and 54 deletions
examples/subscribe-php
12
examples/subscribe-php/subscribe.php
Normal file
12
examples/subscribe-php/subscribe.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?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);
|
Loading…
Add table
Add a link
Reference in a new issue