PHP Tutorial for Beginners

PHP CodeIgniter 4 - CRUD Application Tutorial

Submitted by oretnom23 on

In this tutorial, we will tackle about creating a CRUD (Create, Read, Edit, and Delete) Operation in PHP CodeIgniter 4. CRUD Operations is one the most common function or feature of the web applications that contains a dynamic data. Here, you will learn how to retrieve, store, update, and delete data into the Database using the PHP CodeIgniter Framework. I will be providing a simple web application source code below that contains a CRUD Opertaion.

Optimizing the Uploaded Image in PHP Tutorial

Submitted by oretnom23 on

In this tutorial, I will show you a way how to upload images in PHP with reduced quality and resized resolution. This kind of feature might be helpful to your current or future project that uploads and displays lots of images. It will help your project load the pages faster even there are a lot of images are being shown because instead of displaying the original size and quality of the images is optimized. For example, you are developing a Blog Site and each blog or article has a thumbnail or banner image.

Creating a Login Form with Google Authentication (oAuth2) in PHP and JavaScript Tutorial

Submitted by oretnom23 on

In this tutorial, we will tackle about how to create a web application Login Form with Google Authentication/ Google OAuth API. Here, you will learn how to set up a project and register the app in google console developer. Also, we will be creating a simple login form web application with the said login authentication. The scripts will be written in HTML, CSS, JavaScript, and PHP. In the application, the user credential will also be stored in the database using MySQL Database.

Creating a Login Form with OTP Verification through Email in PHP Tutorial

Submitted by oretnom23 on

In this tutorial, I will show how to create a simple 2 Factor Authentication when logging in using PHP Language. This will help you to create a more secure authentication for your system users in your current or future PHP Projects. The system will generate an OTP or the One-Time-PIN every time the users attempt to login into the system. Here, the OTP will be through an email using GMail SMTP.

The application that we'll be crating in this tutorial has simple functionalities such registration, login, verification, home page, and logout. I hope this will help you.

Sorting Array by Key and Value in PHP Tutorial

Submitted by oretnom23 on

In this tutorial, you will learn how to sort a PHP Array by its Key and Value. PHP have different built-in function on sorting an Array. There is sort(), rsort(), asort(), arsort(), ksort(), and krsort(). Each of the listed functions has same goal of returning the array which sorting them but the difference are how they are being sorted.

Event CRUD in FullCalendar using PHP and jQuery Tutorial

Submitted by oretnom23 on

In this tutorial, I will show how to Create CRUD Operation in FullCalendar with PHP and MySQL Database. here, you will learn to add, edit, view, and delete events on the calendar. The events will be stored in MySQL Database. This feature can be useful for your future PHP Projects such as Appointment Management Systems or Scheduling Systems.

Exporting MySQL Data into a CSV File in PHP Tutorial

Submitted by oretnom23 on

In this tutorial, you will learn how to create a Export MySQL Data to CSV File. With the use of some built-in PHP Functions such as PHP fopen() and fputcsv() we can create a CSV file with data. This tutorial can be useful for your future projects that requires a CSV Exportation Functionality.

Here, we will create a simple PHP application with dummy MySQL data and has an anchor/button that triggers to export the data to CSV File.

How to Create a Flash Message in PHP using Session Tutorial

Submitted by oretnom23 on

In this tutorial, you will learn how to create a Flash Messages in PHP Language using PHP Session. The Flash Message that I am talking about is like the CodeIgniter's Flashdata Function. It allows the developer to store a temporary messages or data that can be access on the next request and after use.

Creating a Simple Comment Section using PHP and SQLite Tutorial

Submitted by oretnom23 on

In this tutorial, you will learn how to create a Simple Comment Section in your Web Application Projects using PHP and SQLite Database. Comment Section is one of the most common feature in a web application such as Blog Sites. This application feature allows users to leave a comment, ask questions, or feedback for a certain post/content. This kind of web application feature also allows other users to reply-to-comment which means other users can leave a comment under a specific comment too.