You Are Viewing Posts Under Category: PHP Codes

Pretty-Print-JSON-Data-Formatter-In-HTML-Using-PHP

Pretty Print JSON Data Formatter In HTML Using PHP

So many times we are required to print the JSON in a pretty format because it is easy to read and understood. As we know JSON (JavaScript object notation) is a lightweight data-interchange format. It is easy for humans to read and write. This tutorial shows how to pretty print JSON data in HTML usin...
How-To-Declare-and-Initialize-PHP-Objects-Without-Class

How To Declare and Initialize PHP Objects Without Class?

In this article, we go over how to initialize an object in PHP without Class. Initializing an object means that we give an object that has been created from a class a value or values. For example, say we create an object named car from the class of the vehicle. The vehicles class represents a [&hell...
Getting-Code-Executed-Inside-PRE-CODE-Tags-Even-They-Are-Properly-Escaped

Getting Code Executed Inside PRE/CODE Tags Even They Are Properly Escaped

Getting code executed inside pre/code tags even if they are properly escaped in WordPress blog or custom website then here is a quick fix for WordPress and custom websites. It’s time to fix this up to stop breaking your templates or blog pages until you find the main culprit because sometimes ...
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...