Enable PHP Zip Extension through cPanel

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.

how to enable extensions in cpanel


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

Enable PHP ZIP Extensions in cPanel

Also Read :
Get Domain name from URL
How to Send Attachment on mail using PHP.
PHP Login Script With Remember me.
Change password using javascript, php and mysqli.
Password and Confirm Password Validation Using JavaScript
Check Email is Already Registered in Database using Ajax and JavaScript.
How to hide extension of html and php file.?

Step3: after clicking on PHP Pear Packages we are searching our ZIP extension and install it.

enable php extension

step 4 : After installing the package we should again go to our software section and click on the PHP version .

install zip archive

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.

enable php zip extension

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.

zip enable in cpanel

Now we can use your PHP ZIP Extension our website.

Send forgot password by mail script in PHP

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

orgot password in php

index.php
Also Read :
PHP Login Script With Remember me.
Change password using javascript, php and mysqli.
Password and Confirm Password Validation Using JavaScript
Check Email is Already Registered in Database using Ajax and JavaScript.
How to hide extension of html and php file.?

style.css

send.php

Login with AJAX ,JQuery and PHP.

welcome back to shortlearner.com, in our previous post we learn how to create a signup or registration page with the help of AJAX, PHP and MySQL. Now in this post today we will learn how to implement login script with the help of Bootstrap, AJAX, PHP and MySQL.
Before start this tutorial we should know a little bit about AJAX.
so basically it stands for Asynchronous JavaScript and XML.

login using ajax in 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.

After creating database we need to establish a connection between our PHP code and MySQL database. so we create a config.php page and make a database connection inside it.
config.php

Also Read :
PHP Login Script With Remember me.
Change password using javascript, php and mysqli.
Password and Confirm Password Validation Using JavaScript
Check Email is Already Registered in Database using Ajax and JavaScript.
How to hide extension of html and php file.?

Now we design a responsive login form with the help of bootstrap, html and css.
index.php

and put the css file in style.css

on form submit we call a JQuery function do_login, which takes all the values of input fields on the behalf of their ids itself, than we send all the data to our do_login.php page using action tag.

now create our last do_login.php page which will help us to check the users data from database without refreshing current page.
do_login.php

User registration using ajax , Jquery and php

welcome back to shortlearner.com, in this post we will see how to create a signup or registration page with the help of AJAX, PHP and MySQL.
Before start this tutorial we should know a little bit about AJAX.
so basically it stands for Asynchronous JavaScript and XML .

signup using ajax 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.

After creating database we need to establish a connection between our PHP code and MySQL database. so we create a config.php page and make a database connection inside it.
config.php

Also Read :
PHP Login Script With Remember me.
Change password using javascript, php and mysqli.
Password and Confirm Password Validation Using JavaScript
Check Email is Already Registered in Database using Ajax and JavaScript.
How to hide extension of html and php file.?

Now we design a responsive signup form with the help of bootstrap, html and css.
index.php

and put the css file in style.css

on form submit we call a JQuery function do_signup, which takes all the values of input fields on the behalf of their ids itself, than we send all the data to our do_login.php page using action tag.

now create our last do_login.php page which will help us to insert all the user details into our database without refreshing the current page.
do_login.php

if we received success in the response than we show an alert pop up of employee successfully registered.

return all dates between two dates in php.

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 .

fetch all dates between two dates in php

Also Read :
PHP Login Script With Remember me.
Change password using javascript, php and mysqli.
Password and Confirm Password Validation Using JavaScript
Check Email is Already Registered in Database using Ajax and JavaScript.
How to hide extension of html and php file.?

find dates between two dates in php

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.