Created
December 11, 2023 05:20
-
-
Save KevinGraham-com/4d6e6bb6f81cd98cfe93ef411530828a to your computer and use it in GitHub Desktop.
WHMCS - Uptime Robot Heartbeat on Daily Cron
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_hook('DailyCronJob', 1, 'uptimeRobotCron'); | |
| function uptimeRobotCron($vars) { | |
| $ch = curl_init("https://heartbeat.uptimerobot.com/xxxxxxx"); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
| curl_exec($ch); | |
| curl_close($ch); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment