PHP Tutorial

PHP password_hash and password_verify Tutorial: Secure Registration and Login with PDO and MySQL

Submitted by jaypabs on

Almost every PHP project needs a login page: a capstone system, an inventory app, a school portal, an admin panel. And almost every beginner tutorial from ten years ago still saves passwords with md5(). That is the one part of a login system you really cannot get wrong, because if your database ever leaks, weak password hashes turn into real passwords within minutes.

How to Build a Simple REST API in PHP and MySQL Using PDO (CRUD with JSON)

Submitted by jaypabs on

Sooner or later every web project needs to talk to something other than a browser. A mobile app wants to load products, a JavaScript front end wants to save a form without reloading the page, or a classmate's system needs to read your data for a capstone integration. The usual answer is a REST API: a set of URLs that accept and return JSON.

Implementing an Activity Log in Your Web App Using PHP

Submitted by oretnom23 on

In this tutorial, we will explore the creation of an activity log feature in web applications using the PHP language. The objective is to offer students and those new to the PHP language a reference or guide to enhance their knowledge and capabilities in developing efficient and effective web applications. I will explain the step-by-step process of creating a reusable PHP Class that implements an Activity Log feature into a PHP project. Additionally, I will provide a complete source code zip file for a sample web application that demonstrates the usage of the mentioned PHP Class.

A Guide to Building Your Own Custom WordPress Plugin

Submitted by oretnom23 on

In this tutorial, we will dive into the development of a Custom WordPress Plugin using the PHP language. The primary goal is to provide students and beginners, particularly those new to WordPress and PHP, with a reference to learning useful techniques to enhance their knowledge and programming capabilities. I'll be offering sample snippets and a sample WordPress plugin source code that demonstrates our main goal in this tutorial.

Generate a Table of Contents for Your WordPress Post with PHP

Submitted by oretnom23 on

In this tutorial, we will explore the creation of a custom PHP script for a WordPress website. The goal is to offer students and beginners a reference or guide to enhance their knowledge and skills in developing custom PHP scripts within WordPress. I'll be providing a simple snippet that generates an automated Table of Contents for post content.

Securing Your PHP Application: A Comprehensive Tutorial on User Access Restriction

Submitted by oretnom23 on

Discover in this guide how to effectively control User Access Restrictions within a web application using the PHP programming language. This tutorial serves as a valuable resource for students and beginners in PHP, offering insights and techniques for developing web applications. Follow the outlined steps to implement user access restrictions, ensuring that certain pages or features of your PHP project are accessible only to authorized users.

What is the importance of implementing User Access Restrictions in a web application?

Convert MySQL Table Data to XML Using PHP: A Step-by-Step Guide to Export Database Records

Submitted by oretnom23 on

This tutorial will guide you through the systematic procedure of Exporting MySQL Database Table Records to a XML File using the PHP language. Geared towards students and PHP beginners, this guide serves as a valuable reference, offering insights to bolster their understanding and programming skills. I will present a straightforward web application that illustrates the primary objective outlined in this article.

Zip and Unzip Files in PHP Tutorial

Submitted by oretnom23 on

Embark on a journey with us as we explore the methods of File Compression and Extraction (Zip/Unzip) in the PHP programming language. This tutorial is primarily created for students and new PHP programmers and serves as a valuable reference to elevate your understanding and skills. Along the way, you'll find illustrative sample snippets showcasing the compression and extraction of files (Zip/UnZip) using PHP.

Transforming XML Data into a PHP Array: Unleash the Power of XML Parsing in PHP!

Submitted by oretnom23 on

In this tutorial, we will uncover the optimal methods for Converting XML Data into a PHP Array. Geared towards students and PHP beginners, this tutorial serves as a valuable resource to elevate your programming skills. Sample PHP snippets will be shared to offer a deeper understanding of the effective use of PHP functions and methods outlined in this tutorial.

Creating an Image from Text with PHP and GD Library

Submitted by oretnom23 on

In this tutorial, we will tackle about Generating an Image from String or Text using PHP and GD Library. This tutorial aims to provide the students and new in PHP programming language with a reference for learning that focuses on manipulating images using the said library and programming language. Here, I will explain the usage of the useful functions that will be use in a sample web application script that consist of converting the provided text into an image.