Posts tagged “PHP”

ImagePlane and some simple OOP designs

At Net Perspective we created an image editor in flash that we just released for sale called ImagePlane. While ImagePlane has already been creatively introduced and documented quite thoroughly, I wanted to go over some decisions concerning the PHP demo. Currently ImagePlane posts saved data to URL via the HTTP POST method. Currently ImagePlane posts [...]

Weird errors and XDebug to save the day!

I had an interesting (and by interesting I mean completely mindbogglingly frustrating) error that I cannot summarize. To start things off I notice to my dismay visiting a specific page on my website would result in a white screen (as would be expected for a fatal PHP error with error_reporting turned off). Problem is I [...]

Quickie: Module-specific Error Controllers in Zend Framework (1.5)

In my quest to do some alterations on ZF error handling (in particular, render the view if the action or controller is not found, makes it real easy for my designer to prototype) I had the desire to be able to allow modules to have their own ErrorControllers. Unfortunately, the Zend_Controller_Plugin_ErrorHandler() default does not allow [...]

End Of An Era (Goodbye to PHP 4)

PHP 4′s end-of-life is today. With that I bid adieu to the half-assed OOP support and general primitive nature of the platform. However I cannot be so callous as my first forays into PHP were with 4.0 releases… Now the question is how much faster will the dumping of PHP 4 (and 5.0/5.1) be and [...]

Displaying N-Deep Trees (Remember Your Algorithms Course?)

Often times when doing web development one has the need to categorize things. And not only basic categorization, n-deep hierarchical categorization. I’ve already discussed storage and retrieval of such data, but there comes a time when one needs to display this information. Sometimes people build systems to only account for their current requirements. If the [...]

PHP Women Best Practice Contest Posts

I made a few posts to the PHPWomen.org Article Competition and felt I should share them here. I wrote three entries: Flash Your Errors: It’s Illegal In 28 States! on combining flash messages and error reporting David Copperfield Wasn’t This __magical: __autoload() is Awesome! on using the __autoload functions and PEAR style namespacing Path Secrets [...]

PHP 5.3 and Closures

I’m fairly excited because as of only a week or so ago I found the closures rfc, and not only did I find that the rfc has a working patch, apparently it’s already in PHP 5.3. You see, apparently it’s not good enough that we get name spaces and late static binding, oh no, we [...]

Hierarchical Data With PHP and MySQL

I recently had fun with an all-to-common issue with SQL driven websites: hierarchical data. For those who don’t like big words, think trees. Other people have already discussed storage methods, and I would actually highly suggest you read the writeup if you haven’t already. While it is fairly straightforward to deal with, in our case [...]

*AMP and Runaway Scripts

Peter Zaitsev posted a very interesting test on how PHP and Apache handle runaway PHP scripts. I’m sure all of us have had a long executing SQL script or at least a runaway script, and he points out even with ignore_user_abort set to FALSE and max execution times set both in PHP and Apache, a [...]

Partial Classes in PHP

One of my favorite features of C# is Partial Classes. For the uninitiated, it is a way of defining a class in two separate locations. Very useful when you have code generation utilities such as LINQ. Unfortunately, PHP has no such feature (though if anyone’s listening it would be a great feature to add to [...]