Technical Articles

In-depth guides, insights, and best practices for modern software engineering

Force Download in PHP

This script works in all browsers, including Internet Explorer! 🙂

Sometimes you need to force the browser to download a file instead of displaying it …

Read Article →

PHP – file() lines

Need to read a file line by line in PHP? The file() function is the quickest way to do it. It reads the entire file into an array where each element …

Read Article →

Send Email PHP Function

Ever find yourself typing the headers into the php mail() function over and over again?

Try using a standard function and calling it when you need to …

Read Article →

Wordwrap that PRE!

Ever used a <PRE> in a limited width div container? You will notice that the line gets cut off almost as if word-wrap was not enabled.

To …

Read Article →