Green Acorn

Category Archives: PHP

PHP’s register_shutdown_function

With any PHP application, fatal errors will occur. Instead of presenting the user a white screen of death, it’s possible to programmatically execute a function just before a PHP completely shutsdown using the PHP function register_shutdown_function. Read more

Author:
Posted in: PHP, Web Development

PHP Error Reporting & Logging

In PHP there are two options that control what errors are reported and whether these errors are shown to the user. Error reporting sets the error reporting level with an assigned integer, typically via a constant. By default, PHP reports everything except E_NOTICE and E_STRICT prior to PHP 5.4. Read more

Author:
Posted in: PHP, Web Development

Getting started with Memcached & PHP

In this basic tutorial, I am going to show you how to install and get started with Memcached using PHP.
Memcached is used to improve a web applications performance by storing an associative array of data in its memory. This is typically used to store database query results, therefore reducing the amount of queries to the database server. Read more

Author:
Posted in: PHP, Web Development

Working with PHP NuSOAP

In this tutorial, I am going to show you how easy it is to work with SOAP using the NuSOAP PHP library.
Firstly, download the NuSOAP library here:

http://sourceforge.net/projects/nusoap/

Once you have downloaded the library, unzip the contents and copy the lib folder into your web root. Read more

Symfony2 Email Helper

In this tutorial I am going to show you how to set up a basic helper class using the Symfony2 PHP framework. By default, Symfony2 doesn’t have a Helper directory in the bundle structure; however, this doesn’t stop us from making one by using Symfony’s built in service container.

Read more

Author:
Posted in: PHP, Symfony

Basic PHP Contact Form Tutorial

Today I am going to show you how to create a simple contact form for your website using PHP. First off we need to create the contact form to allow the user to type in their message and any other details.

Read more

Author:
Posted in: PHP

Getting started with Zend on XAMPP

Today I am going to show you how to set up the Zend framework using XAMPP on a Mac.

Read more

Author:
Posted in: PHP, Zend

Using the Zend Framework Layout

Zend can be pretty useful when it comes to layouts. Today I am going to show you how to set up two layouts, along with dynamic meta title, description and keywords. If you haven’t already got Zend set up – you can follow my previous tutorial here.

Read more

Author:
Posted in: PHP, Zend

Enhance your website forms with Zend_Dojo_Form

I’ve heard a few people talking about Zend_Dojo and how easy it is to implement into your web projects. Lately, I have been doing some research on Zend_Dojo_Form. My first thoughts were that it looked really good. It had a nice look and feel, along with basic Dojo / client side validation. If you are used to using the Zend_Form class – Zend_Dojo_Form allows the same server side validation and filtering, making it a lot more powerful.

Read more

Author:
Posted in: PHP, Zend