Site Archives php

PHP: Manipulate Images with GD


I mentioned a personal project I was working on in the Comet: A Primer blog entry. I hate to mentioned my personal projects since I seem to start more than I ever finish. To let the cat out of the bag, so to speak, I am working on implementing a card game in a web [...]

Share on Facebook Share on Facebook

PHP: Text Circle


I was messing around trying to create a circle tag cloud that I would later use jQuery to animate the text around the outside of the circle on mouse over events. The base level to this idea was to draw a circle. I graduated college with a math minor and it never ceases to amaze [...]

Share on Facebook Share on Facebook

Ignite your PHP Code


While reading a couple of PHP blogs I ran across a couple references to a framework called CodeIgniter. I decided to take a closer look.
From the CodeIgniter website:
CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If [...]

Share on Facebook Share on Facebook

Web Development Cheat Sheets


Doing a google blog search on PHP I ran across a blog for someone that compiles ‘cheat sheets’ for web development technologies. What great about this is they are free in PDF/PNG formats.
PHP cheat sheet features things like functions, expressions, and techniques.
Subversion cheat sheet is good to have while working with saving source and managing [...]

Share on Facebook Share on Facebook

Use WordPress functions externally


I did some quick research and was surprised to find how easy it was to add wordpress function to pages that were external to the blog site folder.
Find the path on which your blogs root it, on the path there is a file wp-config.php. This file once reference on your external page opens the WordPress [...]

Share on Facebook Share on Facebook

REST Client : Approaches to Implementation


I have covered a couple of REST topics previously, Who Needs REST? and Now for the REST of the Story. I started playing around with a client library used to consume rest services and discuss the experience below.
The approaches
My first approach was to create a version of the client using a strategy pattern. By using [...]

Share on Facebook Share on Facebook

Now for the REST of the story


What is REST?
When boiled down, REST is an architectural style that defines a set of constraints. These constrains describe what HTTP and the World Wide Web are based on. These constraints can be defined as follows (list and image below used from A Brief Introduction to REST):

Give every “thing” (resources) an ID
Link things together
Use [...]

Share on Facebook Share on Facebook

PHP, Query Object Pattern


This continues the discussion of Martin Fowler’s Object Query pattern from the book Patterns of Enterprise Application Architecture. The previous discussion about the Metadata mapper pattern talked about how to map domain objects to database results.
These discussion are really a brief overview of Microsoft’s Repository Factory and how they use Fowler’s patterns with [...]

Share on Facebook Share on Facebook

PHP, Data Access Metadata Mapper


In thinking about the post I made a couple of days ago about PHP and the idea of using a Data Access Layer it had inspired me to do some reading. So I have been digging through Martain Fowler’s book Patterns of Enterprise Application Architecture (pictured to the left). Three patterns I have been [...]

Share on Facebook Share on Facebook

Useful PHP Releated Links


Recommended PHP reading list
A list of recommended reading material on PHP is compiled from a variety of online sources by Web application developers in IBM’s Global Production Services organization.
Five common PHP design patterns
Design patterns are just for Java architects — at least that’s what you may have been led to believe. In fact, design patterns [...]

Share on Facebook Share on Facebook