Archive for the "PHP" Category.

Sending Email with PHP mail() on a Windows Server

The Problem

Sending email using PHP on a Windows IIS server is not as simple as it is when using a Linux server. On a typical setup the mail() function probably won’t work without some tweaking.

Continue reading "Sending Email with PHP mail() on a Windows Server" »

How to Match A Backslash with preg_match() in PHP

What is preg_match()?

The preg_match() function will perform a Perl-compatible regular expression pattern match. Sometimes you will want to match a backslash, but it’s not as straightforward as you might first think!

Continue reading "How to Match A Backslash with preg_match() in PHP" »