You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
323 B
15 lines
323 B
1 year ago
|
<?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);
|
||
|
}
|
||
|
|