Form validation is an essential part of web development. It helps ensure that users enter valid and complete information before submitting a form. By validating data on the client side, you can provide instant feedback to users and reduce unnecessary requests to the server. In this tutorial, you will learn… Continue Reading Simple form jquery validation in php

Introduction Dynamic input fields allow users to add or remove multiple file inputs on a web page without refreshing the page. In this tutorial, we will implement a simple multiple-file upload form using HTML, PHP, JavaScript, and jQuery. When a user selects a file, a new file input is automatically… Continue Reading Add and remove dynamic input elements

Introduction This guide explains how to use PHP to compress an entire directory into a ZIP file and automatically download the generated ZIP file through the browser. This is useful when users need to download multiple files or folders as a single archive. Prerequisites Before implementing this functionality, ensure the… Continue Reading Php zip a directory and automatically download

Introduction MySQL provides the FIND_IN_SET() function to search for a value within a comma-separated list. For example: This works when searching for a single value. However, if we want to search for multiple values at the same time, FIND_IN_SET() cannot directly handle the search in the following format: One way… Continue Reading MySQL: Search Multiple Values Without Using FIND_IN_SET()

Introduction inyMCE is a powerful and flexible Rich Text Editor (RTE) that allows users to create and format content directly within a web application. It provides a familiar editing experience with features such as text formatting, lists, links, images, tables, and other content-editing options. In this tutorial, we will learn… Continue Reading Dynamic textarea with TinyMce editor

When users update their profile information, it is important to ensure that certain fields, such as mobile numbers, remain unique across all user accounts. This article explains how to prevent users from updating their profile with a mobile number that is already assigned to another account. Scenario Assume you have… Continue Reading how to avoid inserting duplicate row in php while update user profile

Redis is an in-memory data store commonly used for caching, session storage, message queues, and high-performance database operations. Many PHP applications such as WordPress, Laravel, Magento, and custom web applications use Redis to improve performance and reduce database load. This guide explains how to install and enable the Redis PHP… Continue Reading Enable redis module on php – nginx webserver

Introduction This guide explains how to install Apache 2.4 and PHP 5.6 on Ubuntu 16.04. Since Ubuntu 16.04 does not provide PHP 5.6 as the default PHP version, an additional PHP repository is required. This setup is useful for applications that depend on PHP 5.6 for compatibility. Prerequisites Before starting… Continue Reading Install apache 2.4, php5.6 on Ubuntu 16.04

Introduction cURL is a command-line tool and library used to transfer data using various network protocols such as HTTP, HTTPS, FTP, and SFTP. It is widely used for testing website connectivity, interacting with APIs, downloading files, and troubleshooting network-related issues. On a LiteSpeed Web Server, cURL is commonly required by… Continue Reading Install curl in Litespeed webserver