This tutorial uses PHP strtotime() and date() functions to convert date time format. For example you have stored a date YYYY-MM-DD format in a variable and need to change this to MM-DD-YYYY format. We can achive this by converting date first to seconds using strtotime() function. After that reconstruct date to any format using...
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...
C is a robust programming language used for developing system software. This tutorial will help you to run a C/C++ program in Linux/Unix system through the command line. In this article, we used ‘gcc’ and ‘g++’ commands from GCC (GNU Compiler Collection) to compile a C/C++ program. It is: gcc is the GNU C...
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...
There are two standard types of installation available are JDK and JRE. JDK (Java Development Kit) provides the ability to develop new Java application, which includes Java compiler. JRE (Java Runtime Environment) provides the runtime environment for any Java application with applets. The Java developers required to install JDK and JRE both on their...
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...
Java is a general purpose, secured, robust, object-oriented language developed by Sun Micro-systems in 1990. Java is portable which means it follows write once run anywhere paradigm. The latest version is java9 which was released on September 21, 2017. This tutorial helps you to install Java 9 or Java 8 on macOS Sierra or...
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-5adb76ea919c1235389411/]...