You Are Viewing Posts Under Category: PHP Codes

How-To-Encrypt-Secure-Passwords-In-New-PHP-And-Store-In-Database

How To Encrypt Secure Passwords In New PHP And Store In Database?

Hi! Here let’s see how to secure passwords in PHP. Developers have a huge responsibility when handling sensitive user data, such as passwords. They must take necessary precautions to store passwords and other sensitive information in a secure manner. Old-school methods use the md5 algorithm t...
How-To-Convert-PDF-To-JPEG-Image-In-PHP

How To Convert Multipage PDF To JPEG Images In PHP?

You may need to know how to convert pdf to jpeg in PHP using imagick. PHP offers some good native extensions for image processing. Imagick is one of those extensions with which we can easily create JPEG images from pdf without the need for third-party tools. The library does not need installation si...
How-To-Get-Latitude-And-Longitude-From-Address-Using-PHP-And-Google-Maps-API

How To Get Latitude And Longitude From Address Using PHP And Google Maps API?

Hi! In this tutorial, let’s see how to get latitude and longitude from addresses using google maps geocoding API and PHP. Geocoding is the process of converting physical addresses into geographical coordinates such as latitude and longitude so you can use them to create markers on Google Maps....
How-To-Get-Address-From-Latitude-And-Longitude-Using-PHP-And-Google-Maps-API

How To Get Address From Latitude And Longitude Using PHP And Google Maps API?

Hi! Today let’s see how to get addresses from latitude and longitude using PHP and Google Maps Geocoding API. The process of converting geometric coordinates such as latitude and longitude into addresses is called reverse geocoding. And the geocoding is just the opposite, converting an address...
How-To-Start-And-Use-2-PHP-Session-On-One-Domain-At-A-Time

How To Start And Use 2 PHP Sessions On One Domain At A Time?

Session handling is a key concept in PHP that enables user information to be persisted across all the pages of a website or app. In this post, you’ll learn the basics of session handling in PHP. We’ll start with an explanation of how sessions work and how they are related to cookies. The...
How-To-Get-Remaining-Days,-Hours,-Minutes-And-Seconds-From-A-Date-Using-PHP

How To Get Remaining Days, Hours, Minutes And Seconds From A Date Using PHP?

Today, we will learn to calculate the time remaining till future dates in days, hours, minutes and seconds. Either you are receiving values in the PHP variable from the MySQL database, or you are calling an AJAX request, this tutorial will help you in both situations. We will also display the hours,...
How-To-User-Get-Location-Details-Using-Pure-PHP

How To User Get Location Details Using Pure PHP?

Detecting the location of your users can be really useful if you want to personalize your user’s experience when they browse through your website. Want to show a uniquely tailored promotion? Want to change the language of your site or design based on where your users are coming from? Lots of websi...