Subscribe
Free Knowledge in an RSS feed

Articles » PHP Tutorials

Installing PEAR on OS X 10.6.8

December 28th, 2011

This quick guide describes the process for getting PEAR (a PHP package management utility) installed on OS X.

Xpath Expressions Explained

December 26th, 2011

This quick tutorial shows a fairly complex Xpath selector and breaks down each segment. For those who work with CSS this will be easier to understand.

Tumblr-like Template Syntax PHP Library

November 20th, 2011

This is an explanation of a PHP templating language I’m working on, which will have a similar syntax with the language used by Tumblr.

Enabling PHP 5.3 on Media Temple Grid Service (gs)

September 17th, 2011

A single line of code to add to your apache configuration files enables PHP 5.3 on Media Temple’s Grid Service accounts.

SleekMVC: Simple and Lightweight PHP5 MVC Framework

September 11th, 2011

SleekMVC is the beginner-friendly, lightweight, and nicely-documented framework PHP developers have been looking for.

PHP Method Chaining

August 24th, 2011

How to chain class methods in PHP, allowing for a more verbose way to pass information into your objects.

Simple PHP Namespace Friendly Autoloader Class

August 23rd, 2011

This is a namespace-aware PHP 5.3+ autoloading class. Never use include()’s again!

Simple PHP MySQL Script

May 28th, 2011

This is a very simple PHP script for working with MySQL databases. I first wrote it back in 2005.

Submitting Multi-Dimensional Array Data to PHP

March 19th, 2011

This article is regarding an under-documented PHP feature when dealing with form data received from an HTML page (this works with both GET and POST data). If you name your HTML elements the proper way, you are able to send multidimensional arrays (or single dimension arrays for that matter) to your PHP script and access [...]

Installing PECL :: ncurses on Ubuntu 10.04

January 19th, 2011

I recently had the task of installing the PHP PECL extension ncurses on my Ubuntu 10.04 (Desktop) machine. PECL is a repository manager for PHP extensions. Ncurses is a tool for doing all sorts of awesome command line terminal stuff, such as colors, building windows, updating part of the screen instead of the entire screen, [...]

PHP / MySQL Web Application Migration Steps

October 7th, 2010

I was recently asked how easy it is to move a web application based on the PHP/MySQL realm of web application development. When moving a static website, one can “drag and drop” the website from one location to another, and things usually work just fine, so surely moving a web app is this easy? Unfortunately, [...]

Introducing SofaDB, a pure PHP CouchDB Alternative

May 1st, 2010

An introduction to our SofaDB project, which is a pure PHP alternative to Apache’s CouchDB project. Useful for storing non-relational data. Currently the project is in alpha stages.

Zend Certified Engineer (ZCE) Study Guide Links

March 2nd, 2010

The listing of items from ZCE for the exam, with relevant links compiled by Renowned Media.

PHP cURL Replacement

February 26th, 2010

If you are a PHP developer who writes a lot of software which needs to be executed in many different shared hosts, it can often be frustrating when certain hosts don’t offer all of the functionality your applications require, specificially the cURL libraries. I’ve seen these missing on several hosts, either for security reasons or [...]

PHP cURL cookies not saving on Windows

January 17th, 2010

Why cURL doesn’t work well with relative paths that PHP works fine with, and a workaround for the issue.

Web Spidering

November 26th, 2009


Spidering, in its simplest form is the act of transferring data from one database to another. Spidering requires the use of Regular Expressions, the cURL library (if POST data or cookies are used), and the cron libraries (if we need to download information with a schedule).

Polymorphism, Abstract Classes, and Interfaces in PHP

November 17th, 2009


This article will explain the advanced topics of PHP classes, including polymorphism, abstract classes, and interfaces.

Send SMS Cellphone Messages from your Website

October 17th, 2009

A simple way to send emails to cell phones from websites. The examples use PHP, but the principles would work with any programming language.

Change PHP Timezones

September 19th, 2009

When working with dates, PHP uses the system time by default, which is dependent on the timezone the server is in. So, instead of doing tricky math with the results of the date function, you can simply change the timezone. Here is the function used to change the timezone: <?php putenv(“TZ=US/Detroit”); ?> One thing to [...]

PHP Class for creating CSS Graphs

September 18th, 2009

We’ve developed a PHP Class for drawing a CSS graph. The CSS and XHTML code for this class was originally developed by Meyerweb, we just took it and wrapped a PHP class around it. This class is also hosted over at phpclasses.org if you prefer to get your stuff on that site, but keep in [...]