Welcome back to shortlearner.com, in this post we will see how to enable PHP ZIP extension on cPanel. before start this tutorial, we should take a overview about PHP extension. so basically PHP extension enables you to transparently read or write ZIP compressed archives and the files inside them.
and most of the time it is disable by default in cPanel , so we have to manually install it. So just follow the steps and install these extensions manually. Note: try to follow snaps for better understanding.
step 1: So in the very first step , we should login into our cPanel(Control Panel) and than go to the software section Step 2: in the software section click on PHP Pear Packages
Step3: after clicking on PHP Pear Packages we are searching our ZIP extension and install it.
step 4 : After installing the package we should again go to our software section and click on the PHP version .
Step5: once we click on the select PHP Version, we can see all the enable extension over there, and we can see our Archiv_ZIP as well. so we just checked it and hit on the save button to add archive_zip in our current PHP version.
Step5: now the last and very important step we will follow to complete this tutorial.again go to the software section and click on the PHP processes and hit the kill process button.
Now we can use your PHP ZIP Extension our website.
welcome back to shortlearner.com, in this post we will see how to send forgot password on mail with the help of PHP. So in the very step we establish our database connection in connection.php file than we include it in our send.php file. connection.php
A user can continue to use the application while the client program requests information from the server in the background. so first we create a database with the name of task, and also create a database table with the name of emp_details.
in this table we take employees personal details like employee name, email, password and mobile number as well.
A user can continue to use the application while the client program requests information from the server in the background.
so first we create a database with the name of task, and also create a database table with the name of emp_details. in this table we take employees personal details like employee name, email, password and mobile number as well.
<input type="number"onKeyDown="if(this.value.length==15 && event.keyCode!=8) return false;"class="form-control"name="emp_mobile"id="emp_mobile"placeholder="Your Mobile No *"required="required"/>
welcome back to shortlearner.com . In this post we will see how to find dates between two selected dates using php . most of the time we need to fetch all the dates between two dates to show our data on the behalf of dates and days. so before start this tutorial ,we need to understand the script flow . first of all we makes two php variable which indicates two dates like $date_from and $date_to .
after defining variables we needs to convert our dates into unix timestamps. so doing this process php provides us a pre-defined function strtotime,
which helps to convert English text date time strings into UNIX timestamps . after converts dates string to unix timestamp we run a for loop from $date_from to less than equal to our $date_to variable.
there are many methods to Return all dates between two dates in an array in PHP
Save the above script in your htdocs directory if you are using XAMPP server.