Blog

Page 814 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Returning JSON from a PHP Script
json

Returning JSON from a PHP Script

Published on September 2, 2023

# šŸŽ‰ Returning JSON from a PHP Script - The Easy Way šŸŽ‰ So, you want to return JSON from your PHP script? šŸ¤” Don't worry, we've got you covered! šŸ˜Ž In this blog post, we'll address common issues, provide simple solutions, and make sure you leave with your

Cover Image for What is the difference between public, private, and protected?
oopprivateprotectedpublic

What is the difference between public, private, and protected?

Published on September 2, 2023

šŸ“ **Title: What's the Difference Between Public, Private, and Protected? A Guide to Understanding Access Modifiers** šŸ‘‹ Hey there, tech enthusiasts! Welcome back to our blog, where we demystify complex tech concepts in a fun and easy-to-understand way. T

Cover Image for What are Long-Polling, Websockets, Server-Sent Events (SSE) and Comet?

What are Long-Polling, Websockets, Server-Sent Events (SSE) and Comet?

Published on September 2, 2023

# 🌐 Understanding Real-Time Communication Technologies: Long Polling, Websockets, Server-Sent Events (SSE), and Comet <p>Hello there! šŸ˜„ Are you confused about real-time communication technologies? Do terms like Long Polling, Websockets, Server-Sent Even

Cover Image for How do I expire a PHP session after 30 minutes?

How do I expire a PHP session after 30 minutes?

Published on September 2, 2023

šŸ•’ How to Expire a PHP Session After 30 Minutes šŸ•’ Are you tired of dealing with session issues in your PHP code? Do you need to keep a session alive for 30 minutes and then destroy it? Look no further! In this blog post, we will address this common issue

Cover Image for What is stdClass in PHP?

What is stdClass in PHP?

Published on September 2, 2023

# What the 🌟 is stdClass in PHP? šŸ¤” If you've ever dabbled in PHP programming, you might have come across a mysterious 🧐 term called `stdClass`. šŸ•µļøā€ā™‚ļø Fear not, for today we're diving deep into the world of stdClass and unraveling its secrets! šŸ˜Ž ## U

Cover Image for PHP array delete by value (not key)
arrays

PHP array delete by value (not key)

Published on September 2, 2023

# šŸ’” Deleting Array Elements in PHP: A Simple Solution So, you want to delete a specific value from a PHP array and finding it a bit tricky because you don't know its key. Don't worry, you are not alone! This is a common issue that many PHP developers fac

Cover Image for How can I sanitize user input with PHP?
security

How can I sanitize user input with PHP?

Published on September 2, 2023

# How to Sanitize User Input with PHP šŸ•“ļø When it comes to handling user input in PHP, it's crucial to prioritize security. 😬 User input can be a potential vulnerability, leaving your web application open to attacks like SQL injection and cross-site scri

Cover Image for Enumerations on PHP

Enumerations on PHP

Published on September 2, 2023

# 🧐 Enumerations in PHP: Solving the Predefined Values Dilemma Have you ever found yourself longing for the convenience of enumerations from the Java world while working with PHP? šŸ¤” You know, those nifty predefined values that make IDE auto-completion a

Cover Image for Secure hash and salt for PHP passwords
hashpasswordssecurity

Secure hash and salt for PHP passwords

Published on September 2, 2023

# Secure Hash and Salt for PHP Passwords: A Guide to Safe and Fast Password Protection šŸ”šŸ’» Are you concerned about the security of your users' passwords? Do you want to protect their sensitive information while ensuring your website's performance? Look n

Blog | Matheus Mello