Create template.png
. The rest is documented in the code.
php-cli php-mysql php-gd php-mbstring php-curl
MIT License | |
Copyright (c) 2023 RundesBalli | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
<?php | |
/** | |
* clickableLinks | |
* | |
* Function to automatically link URLs in texts. | |
* | |
* @author RundesBalli <github@rundesballi.com> | |
* @copyright 2022 RundesBalli | |
* @version 1.0 | |
* @license MIT-License |
This simple script uses netcat
to check if - for instance - a webserver is running on a server. If the service is not running, it utilizes the telegram bot API for sending a message to inform the operator of the server.
Go to the BotFather bot-account and create a bot by writing /newbot
. Then, copy the token.
Send a message to you newly created bot (you can find the link to your bot in the success message sent by BotFather).
hex2rgb is a simple php function based on the hexdec function and RegEx.
I have been inspired by the two following comments:
Thanks to the authors.