Subscribe
Free Knowledge in an RSS feed

Articles » PHP Tutorials

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 [...]

PHP Bargraph Generator

September 16th, 2009

This script is loaded using an image tag and generates data based on information added as GET parameters. For example: <img src=”bar.php?value=100&max=256&info” /> Generates: This script requires at least four files to use. The first is an HTML file which loads the image (of course), the second is the background “bar.png” image which the graph [...]

CodeIgniter User Authentication Model

August 23rd, 2009

Here is the source code for our user authentication model which we use in our CodeIgniter applications for interfacing with our users tables.

Amazon PHP Authentication Function

July 21st, 2009

Amazon recently changed their requirements for sending information back and forth between you and them. This includes the addition of a hash which is used to authenticate your calls with a secret key. Here’s the message from the email: Dear Product Advertising API Developer, We wanted to remind you that all Product Advertising API developers [...]

Generating Password Protected ZIP Files using PHP

September 20th, 2008


This is a method for compressing files using the ZIP compression and assigning passwords to them on demand. One requirement is that you are on a Linux server (the script executes command line options that aren’t present on a Windows PC).

PHP Navigation System using Single Entry Point

July 3rd, 2006


How to setup a web application to use a single entry point, reducing code redundancy.

Clean user data using PHP and Regular Expressions

July 1st, 2006


This is a tutorial regarding cleaning/sanitizing user inputted data using PHP and Regular Expressions. You should always clean data from a user and treat it as if it contains bad characters.