mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-15 01:54:10 -08:00
14 lines
322 B
PHP
14 lines
322 B
PHP
<?php
|
|
const PUSH_URL = "https://example.com/api/push/key?status=up&msg=OK&ping=";
|
|
const interval = 60;
|
|
|
|
while (true) {
|
|
$ch = curl_init();
|
|
curl_setopt($ch, CURLOPT_URL, PUSH_URL);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
curl_exec($ch);
|
|
curl_close($ch);
|
|
echo "Pushed!\n";
|
|
sleep(interval);
|
|
}
|