PHP
Tutorials
-

Create A Simple Laravel Hello World! Example
Learn how to create a simple Hello World! example with Laravel using the Blade templating language. Set a variable and pass it from the web router application to a View which is a separate HTML file. Wrap the variable in curly braces in Blade View to display the passed data. This approach is advantageous to make…
-

Install Laravel On Windows
Learn how to install Laravel on windows with composer. Create a web application with Laravel framework that provides a structure and starting point. Laravel provides powerful features such as thorough dependency injection, an expressive database abstraction layer, queues and scheduled jobs, unit and integration testing, and more This article will discuss the basic process of…
-

Read and Parse JSON files in PHP
Read and parse JSON files using the functions file_get_contents() and json_decode() in PHP. The function file_get_contents() will read the entire file into a string, while json_decode() will decode the JSON string. Requirements: PHP PHP JSON extension – added and enabled by default since PHP 5.2.0 How To Read and Parse JSON Files in PHP. The…
-

Check Apache, MySql, and PHP versions
To further check Linux Apache MySQL PHP (LAMP) stack installation, the following can be made to know the exact installed version of each application. Check Apache version. To check the Apache HTTP Server version, type httpd -v on the command line. $ httpd -v Apache’s version is 2.4.55. Check PHP version. To check the PHP…
-

Create An Image With PHP
With the help of the GD library, it is possible to create a JPG, GIF, PNG, and other image formats (Formats supported by GD) in PHP. Either output the generated image on a browser or to a file. Requirements: PHP ^7.2.0 PHP GD Library The first attempt is to create a JPG image and output…
-

Access MySQL DB using PDO in PHP
Most, if not all new PHP server installations now a days include the PHP Data Objects API (PDO_MySQL), this extension is recommended if there’s a chance of connecting to different DBMS (Database Management Systems) in the future. Because same functions will be used to issue queries and to fetch data, only a single API needs…