To send a message to a Telegram channel using PHP, you need to know a Telegram API token and a chat ID, that you will get when you create a Telegram bot. This note shows the PHP code examples for sending messages, images and other data types to the Telegram channel through API.
A PHP script can be executed from the command line even without having any web server software installed. To run the PHP script from the command line you should just have a PHP CLI (PHP Command Line Interface) installed on your system. This note shows how to run the PHP script from the command line […]
The php.ini file is the default configuration file for PHP, that provides a lot of configuration directives that allow you to modify various behaviors of PHP. To change PHP settings you need to edit the php.ini file, but firstly you should locate it. In this short note i will show the easiest method of how […]
In this guide, I will show you, how to install LAMP (Linux, Apache, MySQL, PHP) – a stack of free, open source software for building a web server for general purpose. 1. Install Apache HTTP Server yum install httpd Backup the apache configuration file ‘httpd.conf’. cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.backup Set the apache service to start at […]