phpMyAdmin is an open source tool widely used for the MySQL database administration. It provides an easy to use graphical user interface. You can easily create, modify, delete database and tables. It also allows managing user and permission. You can also configure database replication using phpMyAdmin. This tutorial helps you to install and configure...
The PHP Composer is a package management tool. It removes the hassle of maintaining PHP packages for an application manually. You can easily install all the required packages using Composer. It maintains a list of required packages in a JSON file called composer.json. This tutorial helps you to install and configure PHP composer on...
The Ubuntu users can visit our tutorial for installing PHP 7 on Ubuntu. This tutorial is for the Debian 9 Stretch users to install PHP 7.2, 7.1 or 5.6 on their systems. First, you need to complete the Prerequisites step and then go forward for installing PHP version of your choice or requirements. Prerequisites...
The PHP cURL is a library used for making HTTP requests. In order to use PHP cURL, you must have installed and enabled libcurl module for PHP on your system. In this tutorial, you will learn how to POST JSON data with PHP cURL requests. Basically, there are 4 steps involved to complete a...
All the installed PHP modules configuration files are available under /etc/php/<VERSION>/mods-available directory. You can see the number of files with extension .ini. You must have installed specific PHP modules, you need to enable before using this tutorial. The php-common package provides followings commands to manage PHP modules. phpenmod – Used to enable modules in...
You can use date() function to get current Date and Time in any PHP version. A DateTime PHP class is also available in PHP > 5.2 to get Date and Time. PHP Date and Time Print the current date and time using date() function. It will use the default timezone configured in php.ini. [crayon-5ad977523b98c115381479/]...
This tutorial will help you to check if a string contains any substring in PHP programming language. For example, you want to run a specific line of code only if any input string contains another substring in it. Example 1: The following code will evaluate to true because the main string $str contains the...
This tutorial will help you to prevent SQL inject in PHP. In this tutorial first, check a basic example of SQL injection process. How can users steal data from your website using SQL injection? This tutorial also includes methods to prevent SQL injection using PHP-MySQLi and PHP-PDO drivers. Simple SQL Injection Example For example,...
Install PHP Ioncube Loaders in Ubuntu & Debian . Ioncube is used as encryption/decryption utility for PHP applications by which we can keep safe our data. It also can restrict PHP application to execute unauthorized. It also assists in speeding up the pages that are served. IonCube loaders are used for decoding encoded files...
You can use PHP date() function or DateTime() class to get current Date and Time in PHP. This tutorial will help you to get current date time in PHP. Using date() Function: The below php script will return current date time in ‘Y-m-d H:i:s’ format. [crayon-5ad977523d323831036019/] Result:- 2017-02-27 08:22:26 Using DateTime() Class: The DateTime()...