Blog

Page 730 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for SQL injection that gets around mysql_real_escape_string()
mysqlsecurity

SQL injection that gets around mysql_real_escape_string()

Published on September 2, 2023

## 🦠 SQL Injection: Outsmarting mysql_real_escape_string() Are you familiar with the term SQL injection? If not, let me bring you up to speed. SQL injection is an attack technique where malicious actors insert malicious SQL code into an application's dat

Cover Image for Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted
memory

Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted

Published on September 2, 2023

# Fatal Error: Allowed Memory Size Exhausted šŸ§ šŸ’„ Oh no! You've encountered the dreaded "Allowed Memory Size Exhausted" error in your PHP application. 😱 This error occurs when your application tries to allocate more memory than the maximum allowed memory

Cover Image for Show a number to two decimal places
formattingnumber-formattingnumbersrounding

Show a number to two decimal places

Published on September 2, 2023

### Show Me the Money! šŸ’°šŸ’°šŸ’° Oh, hey there, tech-savvy folks! Have you ever been faced with the challenge of showing a number in PHP to just two decimal places? šŸ¤” Fear not, my friends, for I bring tidings of easy solutions that will make your coding lif

Cover Image for Pretty-Printing JSON with PHP
jsonpretty-print

Pretty-Printing JSON with PHP

Published on September 2, 2023

šŸ’»šŸ“ Pretty-Printing JSON with PHP: Making Your Data Look Beautiful šŸ˜šŸŒˆ If you've ever worked with JSON data in PHP, you might have encountered the issue of your JSON output looking less than pretty. šŸ¤”šŸ˜• You know, the kind of JSON that looks like a ta

Cover Image for Finding the number of days between two dates
datetime

Finding the number of days between two dates

Published on September 2, 2023

# šŸ“† Finding the Number of Days Between Two Dates šŸ‘‹ Hey there, tech enthusiasts! Have you ever needed to calculate the number of days between two dates using PHP? šŸ¤” Well, you're in luck! In this blog post, we'll explore how you can solve this problem wi

Cover Image for What is the best collation to use for MySQL with PHP?
mysql

What is the best collation to use for MySQL with PHP?

Published on September 2, 2023

# **The Best Collation to Use for MySQL with PHP** ----------- Are you feeling lost when it comes to choosing the right collation for your MySQL database in conjunction with PHP? Don't worry, you're not alone! Choosing the best collation can be a bit trick

Cover Image for How do I implement basic "Long Polling"?
http

How do I implement basic "Long Polling"?

Published on September 2, 2023

# Your Complete Guide to Implementing "Long Polling" with Apache and PHP So, you've heard about "Long Polling" and want to implement it in your web application, but you're struggling to find simple examples of how to do it. Don't worry, we've got you cove

Cover Image for How do I send a POST request with PHP?
http

How do I send a POST request with PHP?

Published on September 2, 2023

## How to Send a POST Request with PHP: A Complete Guide šŸ˜ŽšŸ’» So, you want to send a POST request with PHP and fetch the contents from the returned response? No worries, we've got you covered! In this blog post, we'll walk you through the process step-by-

Cover Image for Get first key in a (possibly) associative array?
arrays

Get first key in a (possibly) associative array?

Published on September 2, 2023

# Blog Post Title: Finding the First Key in a (Possibly) Associative Array: A Quick Guide šŸ“ Introduction: Hey there, tech enthusiasts! šŸ‘‹ Have you ever wondered how to efficiently retrieve the first key from a potentially associative array? This is a com

Cover Image for How to calculate the difference between two dates using PHP?
datetime

How to calculate the difference between two dates using PHP?

Published on September 2, 2023

# šŸ•°ļø How to Calculate the Difference Between Two Dates using PHP? šŸ“… So, you need to find the difference between two dates, huh? Don't worry, we've got your back! With PHP, calculating the difference between two dates is easier than ever. Let's dive righ