↓ Skip to Main Content

devunit

Main Navigation

  • Home
Home › View all posts by admin

Author: admin

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 »

Vanilla WAMP in Under 30 Minutes

By admin Posted on December 20, 2021 Posted in WAMP No Comments Tagged with apache, mysql, php, wamp, wampserver, windows, xampp

This guide will take you through the basic steps of setting up a vanilla / barebones 64-bit WAMP (Apache, MySQL, PHP on Windows) stack in less than 30 minutes using Apache 2.4, PHP 7.4, and MySQL 8.0. This guide uses …

Vanilla WAMP in Under 30 Minutes 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 »

© 2023 devunit | Powered by Responsive Theme