↓ Skip to Main Content

devunit

Main Navigation

  • Home
Home › Archive for PHP

Category: PHP

PHP Sessions in Plain English

By admin Posted on January 5, 2022 Posted in PHP No Comments

You might have read or heard someone say, “You need sessions because HTTP is a stateless protocol.” However, that technical jargon isn’t really useful to someone who’s just learning all this stuff, so let’s get away from all those techy …

PHP Sessions in Plain English Read more »

Displaying Output

By admin Posted on December 16, 2021 Posted in PHP No Comments

echo vs. print Is there really any difference at all? Sure! Is it significant? Nope. In most cases, you should just use echo, for 3 reasons: First, echo is slightly faster than print. If you were to run echo 10 …

Displaying Output Read more »

Don’t Use the empty() Function!

By admin Posted on December 16, 2021 Posted in PHP No Comments Tagged with empty, php

They Lost HOW Much Data?! Here’s a fun little story. A client wanted a form built that would collect some basic family information like whether someone was married or single, had children, income, etc… Mr. Developer says, “No problem!” and …

Don’t Use the empty() Function! Read more »

Why and How to Use Prepared Statements

By admin Posted on December 14, 2021 Posted in Database, PHP, Security No Comments Tagged with database, php, security

“If it ain’t broke, don’t fix it.” SQL injection is one of the most common issues facing many PHP developers. You’ve finally got that login form working with your database script and now someone is telling all your hard work …

Why and How to Use Prepared Statements Read more »

© 2025 devunit | Powered by Responsive Theme