New Script – FAQ Manager (Standalone or WordPress Integration)

FAQ Manager is a PHP script designed to allow you to quickly add and manage a collection of frequently asked questions which can be displayed on your website. It is structured in a such a way that it can be used as a standalone script, placed on a page in WordPress (and indexable by search [...]

Closing PHP Tag Not Needed

When developing PHP scripts, I often find people logging ‘bugs’ about missing closing PHP tags. i.e. ?> I want to make something clear, this is not a requirement unless you plan to stop PHP and output HTML. The following is a 100% valid PHP file: <?php echo “Hello, World!”; Why do it? The best reason [...]

Quick function lookup on PHP.net

This is a quick and very handy method for looking up functions on php.net. As a PHP programmer, you’ll find yourself constantly consulting the php.net website. Often arguments are in different orders with different functions and it can be hard to remember them all. PHP.net has a convienent method for looking up functions. To look [...]

How to display HTML source code

Problem: You want to display HTML on your website so that your visitors can see it. E.g. You might have a tutorial page. Solution: Use the htmlspecialchars function. This function will encode all characters in the string passed into it so that the final output will be displayed literally on a HTML page. For example: [...]