Articles

A series of articles on PHP and various topics that are of concern to any PHP developer.

How to Spot Email Phishing

Phishing is a favorite vehicle for attackers to gain access to your system.  A lot has been written on this subject, but it's important enough to merit yet another article, this time based upon actual messages received.

 

Security Issues: ctype_digit() Weirdness

The PHP ctype_* family of functions is widely used for form data validation.  What most developers don't realize is that ctype_digit() holds a hidden trap that can result in false positives.  In this article we explore this dirty little secret.

 

PHP 8.2 Disjunctive Normal Form Types

Understanding the disjunctive form type introduced in PHP 8.2 allows for more concise and expressive code when dealing with union types. In this article you learn about DNF and how it fits into your PHP code.

 

How to Avoid Email SPAM

A question on everyone's mind is: how did they get my email address in the first place? This articles explores how email addresses are commonly acquired and what you can do to prevent this.