Writing an Event System in PHP

March 6, 2010 2 comments

In this tutorial you will learn how to create and implement an event system in PHP. You will be able to integrate it with your own web application or framework.

What is an event system?

An event system is a…

Preventing CSRF in PHP

February 16, 2010 1 comment

Cross site request forgery (CSRF) is where a malicious website will attempt to issue actions on another website without the user’s knowledge of it occuring.

Hypothetical Situation: You had just done some online banking and had ticked the ‘Remember me’…

PHP in Action – Objects, Design, Agility

January 31, 2010 1 comment

Book Review

PHP in Action is a book aimed at people who are comfortable coding procedural or object orientated PHP scripts. It doesn’t teach you what a variable is or what function to use if you want…

PHP Namespaces

January 8, 2010 1 comment

Namespaces were introduced into PHP from version 5.3 onwards. They allow the developer to seperate their code into modules or groups which inturn makes the code easier to read. Namespaces prevent class and function name conflicts, it allows you to…

PHP cURL

December 22, 2009 No comments yet

cURL is a library written in C that enables easy transfer of data in many different protocols including FTP, FTPS, HTTP, TELNET and LDAP. cURL does more than simply download a file. You can store cookies, upload files, use various…

PHP Regular expresssion URL Router

June 23, 2009 No comments yet

In this tutorial we will create a PHP URL router. The developer using the router will be able to define these routes with regular expressions, these will then map to a file, class and method which will be called –…

PHP Autoload

May 30, 2009 No comments yet

In large PHP applications you typically see a “classes” directory that only contains classes which are used throughout the application (database, session management, forms etc..). A problem quickly appears: Everytime you wanted to use one of the classes, you would…

Easy RSS Consumption with Simple Pie in PHP

February 1, 2009 Comments Off

Introduction

RSS Feed consumption has always been a stick point in PHP. Simple Pie is a library that works with both PHP4 and PHP5 that enables you to easily parse and save RSS feeds. Today I’ll show you some common…

Tutorial: Automated Site Backup with PHP and FTP

January 25, 2009 No comments yet

In this tutorial we are going to make a PHP script that archives your website into a .tar file, then automatically moves it to an external FTP server for safe keeping. We can then setup a cron for this script…

PHP/jQuery Todo List Part 2

December 8, 2008 8 comments

This is part 2 of a 2 part series on making a Todo List with PHP and enhancing it with jQuery’s AJAX

In part 1 of the tutorial, we covered the PHP and MySQL side of things. In this part…


Sourcebits

iPhone Development and Flex Development

Categories