Php upload multiple files example
Today we discuss about the php upload multiple files example. Below are the steps to upload multiple files and store them in a folder − HTML code <form method=”post” id=”” action=”action.php” enctype=”multipart/form-data”> <div class=”row” style=”padding-top: 10px;”> <div class=”col-md-6″> <div class=”form-group”> <label>PDF/Image</label> <input type=”file” class=”form-control” name=”patient_report[]” multiple=”multiple”> </div> </div> </div> <div class=”row” style=”padding-top: 10px;”> <div class=”col-md-6″> […]
Inventory Management System in PHP
Inventory is the goods or materials a business intends to sell to customers or users for making a profit. An inventory management system is the process by which you track your goods throughout your entire supply chain, from purchasing to production to end sales. The goal of inventory management system is to have the right […]
Integrate MailChimp API with PHP
Today, We will tell you how to integrate MailChimp API with PHP.Subscribers add to Mailchimp using their API using PHP cURL.Mailchimp is a popular email marketing tool(service) that manages subscribers.Using Mailchimp, you can send an email like announcements or offers. Requirement API key from the Mailchimp List id from the Mailchimp Customer data sent to […]
Top 5 image optimizer tools
Today we share the top 5 image optimizer tools which are used for the reduced size of the images without installing any software.Purpose of the image optimization is to improve the speed of web pages.Image optimization also improves your SEO ranking.Using image optimizer tools get a higher Lighthouse score and increase your visibility.You can reduce […]
Create a pie chart using JavaScript.
Today, We learn to create a pie chart without any library. This post will take you through how to do that using JavaScript, HTML Canvas, and CSS. Pre-Requirements HTML CSS JavaScript Create a pie chart full code: <!DOCTYPE html> <html> <head> <title>canvas test</title> <style type=”text/css”> .pie_container{ width: 100%; height: 100vh; display: flex; justify-content: center; align-items: […]
Access denied for user ‘phpmyadmin’@’localhost’ (using password: YES)
In this blog, we will see how to fix the error “Access denied for user ‘phpmyadmin’@’localhost’ (using password: YES)” following simple steps. Once you follow the below you will be able again to use your phpMyAdmin@localhost database. Below are the steps:- You have to open XAMPP Control Panel ->Click MySql Config->Click my.ini. It will open […]
How to find nearest value in PHP
Today we discuss about the nearest Value in PHP. Suppose that I have nmber like 456 its will become 460. You can get right value using below method. Nearest the value in PHP echo roundToTheNearestAnything(121, 10).'<br>’; echo roundToTheNearestAnything(8, 5).'<br>’; echo roundToTheNearestAnything(1, 2).'<br>’; function roundToTheNearestAnything($value, $roundTo) { $mod = $value%$roundTo; return $value+($mod<($roundTo/2)?-$mod:$roundTo-$mod); } Nearest the value […]
Add multiple sitemap into one in Website
Hello reader today we will discuss add multiple sitemap into one in Website. What is sitemap : An XML sitemap contain the website URls. It can have a maximum of 50,000 URLs, and an uncompressed file size limit of 50MB. When we exceed the limit, we will need to split our URLs across multiple XML […]
Encrypt decrypt in php with salt
OpenSSL functions to use encrypt decrypt in php with salt below code Encrypt Method $privateKey = ‘AA74CDCC2BBRT935136HH7B63C27’; // user define key $secretKey = ‘5fgf5HJ5g27’; // user define secret key $encryptMethod = “AES-256-CBC”; $string = ‘IB12345’; // user define value $key = hash(‘sha256’, $privateKey); $ivalue = substr(hash(‘sha256’, $secretKey), 0, 16); // sha256 is hash_hmac_algo $result = […]
What is Composer and how to install it?
In this blog, we will discuss about what is composer and how to install it. In simple words, it is a dependency manager or you can say application-level package manager for PHP. It is used to install and manage application dependencies. It was developed by Nils Adermann and Jordi Boggiano. For composer you need to […]
How to add video on the website?
How To Add Video On the Website, In this blog we will see how we can add video on the website. HTML5 has a native video element that supports three video formats (MP4, WebM, and Ogg), making it much easier to embed videos on a webpage. You can define the external source for the video […]
Database connection in PHP
Ways of Connecting to MySQL through PHP Today we will see how to program databases connection in PHP. In order to store or access the data inside a MySQL database, you first need to connect to the MySQL database server and a PHP script. When developers usually say database, they are referring to MySQL. MySQL’s […]