Category Archives: PHP
Building Administration Interfaces with XUL
I’m starting to work with mozilla and XUL again. I’ll be posting that work soon, But in the meantime I found this presentation I did back in 2005. [original post] I remember that is when I first stumbled across this strange but useful XmlHTTPRequest object and wondered if it’s use would find its way to [...]
OpenQA Selenium
Selenium
is a functional/acceptance testing tool for web applications. It in in the same space as tools like
Winrunner
Quick Test Pro
Mercury TestDirector
Selenium Advantages
The core is written in javascript so it runs directly in a browser, just as real users do
Supported on OS X, Linux, and Windows
Very simple to learn and use
Open Source (Apache License 2.0)
Selenium [...]
Running PHP5 fast cgi with lighttpd on OS X
Lighttpd is a lightweight (lighter than Apache) http server. It has been gaining more an more press lately (The Ruby crowd uses it often for Rails).You can run PHP on lighttpd as a CGI (Fast CGI prefferably). You can even keep your existing Apache/PHP install and run Lighttpd/PHP side by side (on another port)
Step 1: [...]
Cache_lite Wrapper Class
Cache_lite is a very usefull PEAR library for implementing lightweight caching mechanisims. Two things it is capable of doing is;
* caching the return from any function * caching any datastructure you pass to it.
One issue with Cache_lites implementation of these two capabilities is that they come from different classes. If you need [...]
Example Development Environment
This is an outline of a development architecture I put together for a client.
A example software development environment utilizing, Linux, Apache, PHP, and Subversion.
No testing environment is shown here but it is easily added by cloning the dev env.
Outline of the Sandbox Environment
The Development Environment
The Production Environment
PHP Data Objects
DataObject is a design pattern that incapsualtes the database with a simple to use interface. This alows the Controller to interact with the database layer in an SQL’less way. To acomplish this you build a base DataObject abstract class that implements the base functionality and sets up the interface for a Data Object. Then for [...]
Very Simple Captcha
Very Simple Captcha or “Poor Man’s Captcha”
This is a very simple way to implement a Captcha concept. It is less effective than say a generated on the fly image (using something like GD), but it is far better than using nothing at all.
Summary of Usage
In the PHP scripts that controls a page that requires a [...]
Drupal Caching
Drupal 5.0 With caching off
ab -c100 -n10 http://example.com/index.phpThis is ApacheBench, Version 2.0.41-dev apache-2.0Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking example.com (be patient)…..done
Server Software: Apache/2.0.59Server Hostname: example.comServer Port: [...]
Get Lazy
After much deliberation and discussions with friends (thanks Mark), I have decided to embrace PHP5’s built in __autoload function. I have chosen a method briefly documented on phpKitchen. For those of you who do not know what PHP5 __autoload is, no worry go here for a review
The short of it is for [...]
Succeeding As A Self Employed Web Developer
Here are the slides for another talk I gave to the pdxphp group. The topics include…
Types of web development business models
Are you ready to fire your boss?
Tools needed
A few gottcha’s to watch out for
To host, or not to host?
Legal stuff
Networking 101
Personal Marketing 101
Keeping sharp
What’s currently HOT! in web development.
