How to set up the Zend Framework Command Line Tool on Mac OS X

Now that the Zend Framework ships with a command line tool, it’s even easier to get started programming with the Zend Framework. In this tutorial, I will show you how to set up the command line tool for use on Mac OS X.

What is the best PHP mailing list software?

In my search for the best PHP mailing list software, I’ve come across some pretty bad ones, and some pretty good ones.
My criteria for a “good PHP mailing list” is the following:
-easy install
-easy integration
-double opt-in subscription
-sends mail even after browser window has closed (imagine waiting for your PHP script to finish sending an email to [...]

Getting started with Zend_Test – Step 4: Testing your Zend Framework Controllers

In part four of this “How to get started using Zend_Test” series, we will finally get to start testing our controllers!

Getting started with Zend_Test – Step 3: Make sure PHPUnit is ready for testing

Now that we’ve installed PEAR and PHPUnit, we can verify that PHPUnit is working correctly by writing our first test.
Since we installed PHPUnit through PEAR, and we have properly configured our include_path variable in our php.ini file, we can create our test files anywhere and PHP will know where to look to find PHPUnit. So [...]

Getting started with Zend_Test – Step 1: Setting up PEAR on Mac OS X 10.5 (Leopard)

Question: How do I get started using Zend_Test? What is the process necessary to start using Zend_Test for testing my Zend Framework application?

Answer: Zend_Test extends PHPUnit. Therefore, we need to start by installing PHPUnit. The easiest way to install PHPUnit is by installing PEAR. Therefore…you get the idea. We need PEAR. I’ll walk you through the process I took to install PEAR on Mac OS X 10.5 (Leopard).

How to add password protection to a website

Question: I have a website that I don’t want accessible to the general public. What is the best, most reliable and secure way to add password protection to my website (or section of my website) to make it secure?
Answer: there are a few different ways to add password protection to sites and pages: PHP, JavaScript, [...]

There’s a new IDE in town!

Now that I’m getting into Object Oriented PHP programming, and the Zend Framework, I need an editor that can keep up with the complexity of my projects. Integrated Development Environments can make developing websites go so much faster and more smoothly. I’ve been using Aptana for all of my PHP projects, but it just feels [...]

How to set up Mac OS X 10.5 for Web Development

Q: How do I set up PHP, Apache, MySQL, and Virtual Hosts on my Mac OS X 10.5?
A: That’s a good question! I’ve installed Apache, PHP, PEAR, Virtual Hosts, but haven’t had any luck with getting MySQL up and running. If you figure it out…please let me know!! Right now I’m using MAMP. Not the [...]

How to compare the differences between two arrays in PHP

Question: How do I write a function to compare the differences between two arrays?
Consider the following scenarios:
$alreadyInTheDatabase = array(’name’ => ‘Joe’, ‘address’ => ‘123 Fake St’);
$newFormValuesArray = array(’name’ => ‘Joe’, ‘address’ => ‘My address has changed’);

$alreadyInTheDatabase = array(’name’ => ‘Joe’, ‘address’ => ‘123 Fake St’);
$newFormValuesArray = array(’name’ => ‘Joe’); //a bad form has address missing [...]

Setting up a virtual host on a Mac running MAMP

Update: I just found out about some great software that makes setting up virtual hosts with MAMP a breeze. You’d better check out this tutorial before reading mine, then go download VirtualHostX for only $9 dollars.
Or, if you want to do it for free, read on…
The super-easy, “How to set up name-based virtual hosts on [...]

Contact Form