The PHP mail() Function

Sending email messages are very common for a web application, for example, sending welcome email when a user create an account on your website, sending newsletters to your registered users, or getting user feedback or comment through website’s contact form, and so on.

Continue reading

Write your own WordPress plugin to rename Posts

Watch out! This tutorial is over 1 year old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

Quite often when building  a WordPress website you might want to use the Post object to represent something else, for example, a business, a piece of art, a machine etc. So when the editors login, you want them to “Add New Machine”, “Edit Machine” and so on, yes?

Continue reading

PHP Namespaces

Watch out! This tutorial is over 1 year old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

What are namespaces? In the broadest definition namespaces are a way of encapsulating items. This can be seen as an abstract concept in many places.

Continue reading