ShellHacks
Command-Line Tips and Tricks

php

  • Blog

Telegram: Send Message using PHP

Posted on January 15, 2022September 1, 2022by admin

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.

Read More
2 Comments
  • Blog

Run PHP Script From Command Line

Posted on January 14, 2022January 12, 2022by admin

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 […]

Read More
1 Comment
  • Blog

Find ‘php.ini’ – PHP Configuration File Location

Posted on January 13, 2022January 12, 2022by admin

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 […]

Read More
No comments yet
  • Blog

HowTo: Install LAMP on CentOS/RHEL

Posted on December 27, 2016March 18, 2017by admin

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 […]

Read More
No comments yet

Online Tools

  • Base64 Decode
  • Base64 Encode

Tags

access-control anonymity ansible apache archive arduino artifactory bash boot cmd command-line curl dns docker encryption git gitlab helm java jenkins kubernetes linux macos mail mongodb mysql network openssl pdf php powershell prometheus python raspberry pi ssh sublime text systemd telegram telnet text-processing tor tsm windows wordpress yum
  • Telegram
  • Twitter
  • RSS
Privacy
Copyright © 2011-2022 | www.ShellHacks.com