Save Files to MySQL using PHP

I have shown file upload example using PHP in previous tutorials PHP file upload but in this tutorial I will show you how to save the uploaded files to MySQL database using PHP. You may be wonder why you would need to save file content into database rather than just into the file system. In situations where PHP application needs to put…

PHP Multiple Files Upload Example

Multiple Files Upload PHP multiple files upload example will show you how to upload multiple files using PHP and AJAX using jQuery. In this example the files are selected using the browse buttons and files are uploaded to the uploads directory under project’s root directory. Make sure uploads directory exists under your project’s root folder. PHP script stores the files…

Multi-Step Registration Form Using Codeigniter, MySQL, jQuery

Table of Contents Introduction Prerequisites Project Directory MySQL Table Configuring Autoload Configuring Database Model Class Controller Class View File Configuring Route Testing Multi Step Form Source Code Introduction Here you will see example on multi-step registration form using Codeigniter 3, MySQL, jQuery. Here I will insert data into database using multi-step registration step. Sometimes you may need to capture lots…

Call Stored Procedure using Codeigniter

This tutorial will show you how to call stored procedure using CodeIgniter framework. Here I will use MySQL database server to store the data. Stored procedure is used when you want to execute multiple SQL statements in a group to perform certain actions. Related Posts: Call Stored Procedure using CodeIgniter 4 Codeigniter MySQL Stored procedure CRUD Example How to call…

AngularJS Codeigniter REST CRUD Example

In this Codeigniter AngularJS CRUD example, we will see the integration of AngularJS with Codeigniter REST. We are going to create CRUD application using Codeigniter REST API on server side and AngularJS is encapsulated within PHP file on client side. Thus the client will communicate with server asynchronously using AngularJS $http service. Please read the following tutorials before reading this…

AngularJS PHP REST CRUD Example

In this tutorial we will see the integration of AngularJS with PHP REST. We are going to create CRUD application using PHP REST API on server side and AngularJS is encapsulated within html file on client side. Thus the client will communicate with server asynchronously using AngularJS $http service. Please read REST API CRUD Example in PHP, MySQL for server…

REST API CRUD Example in PHP PDO MySQL

REST APIs In this tutorial I am going to show you how you can work with RESTful webservice or REST webservice in PHP PDO, MySQL. The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the resource or collection of resources….

Detect Operating System Using PHP

Introduction In this example I will show you how to detect Operating System using PHP technology. I am going to use browser’s HTTP_USER_AGENT that gives lots of information about the operating system, but here I will only detect operating system type, such as, Windows, Mac, Linux, Ubuntu, Mobile etc. I won’t list down further details, such as, what is the…

Remove version from css & js files in WordPress

In this post I will show how you can remove version from CSS & JS files in WordPress. Almost all css and js files in the WordPress have the WordPress version number appended after the file names or using a query string. Having query string with the URL browser does not cache the file because the file is treated as…

Create archive or zip using PHP

In this example, I will explain how to create a zip file of multiple files using PHP. Create below function to create a zip file from multiple files.