You Are Viewing Posts Under Category: PHP Codes

PHP REST API Calling General Function With Header And Body Response
January 26th, 2023 | 0 Comments | HTML-CSS-PHP-JavaScript / PHP Codes | I was recently working on a project where I needed to integrate an external API using HTTP cURL requests. It was my first time doing this and I had a lot of problems figuring this out. I wrote this post so I can remember my cURL API calls for next time, and maybe it can […]...
Complete List Of Timezones In Dropdown Using PHP
January 15th, 2023 | 0 Comments | HTML-CSS-PHP-JavaScript / PHP Codes | If you’ve ever had to deal with time and PHP before, chances are you’ve had to deal with time zones. Dealing with time is difficult enough, but once the time becomes variable based on the preferences of the user of your application, it becomes even more confusing. Why so confusing? I mean, it se...
Pretty Print JSON Data Formatter In HTML Using PHP
December 15th, 2022 | 2 Comments | HTML-CSS-PHP-JavaScript / PHP Codes | 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?
November 27th, 2022 | 0 Comments | HTML-CSS-PHP-JavaScript / PHP Codes | 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
October 31st, 2022 | 0 Comments | HTML-CSS-PHP-JavaScript / PHP Codes | 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?
October 6th, 2022 | 0 Comments | HTML-CSS-PHP-JavaScript / PHP Codes | 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...