All blog posts tagged with php
Quick Rant
Just a quick rant today - I've been trying to use Tomcat 6 + Hibernate Persistence using NetBeans IDE 6.9 and so far, I am seriously unimpressed. In fact, aside from the Java language (which I enjoy programming in), the whole Java servlets system seems to be a fairly large mess.
Here's an example wi…
Ubuntu 10.04 + PHP 5.3 + XMail
If you install XMail on your Ubuntu 10.04 server, you will find that PHP won't be able to send mail out. You will repeatedly an error similar to this:
/var/lib/xmail/spool/temp/1277773767000.23491.p2198888.pubip.serverbeach.com: Permission denied
Don't bother with file permissions - they don't work.…
PHP JSONz
At my place of work, much of the URLs we use internal to the system uses JSON-encoded objects which are BASE64 encoded in order to be able to use them as part of the path in a URL. The major advantage of this is that we can pass huge amounts of arguments with meaningful names a lot easier than using…
Function Aliasing in PHP
One question I've asked myself and I see asked on sites such as stackoverflow.com is if PHP is able to have "aliases" for functions. The answer is either, "no, you have to use a wrapper function" or to the more extreme "you can write an extension".
Since I'm one of those PHP developers who doesn't t…
Class Proxy in PHP
One of the nice things with PHP is that if you include a file from within a class method, that included file can use "$this" to access the class which included it. Very handy.
However, today I wanted to make it even easier - I wanted the loading of content to exist in a separate class, but I still w…
A Case of PHP Annotations
I recently had the need for a simple ORM layer for a custom CMS framework I work in. I didn't want the typical huge ORM, such as Doctrine - just something small and simple.
Coming from a J2EE background, I learned to like annotations and wanted my PHP ORM to be similar. After searching (unsuccessful…
The Peculiar Nature of PHP
PHP has obviously been around for a while. Not quite as long as C, but by all accounts around 1995, the same year as Ruby and Java. And yet, I find it one of the most peculiar languages with regards to how people (those core to the language itself, as well as users) have developed using such a diver…
PHP "Eval is Evil"
I keep seeing something which is beginning to annoy me - I keep seeing all these forum and blog comments saying how terrible PHP's "eval" instruction is, and how there is no reason what-so-ever to use it.
I wish people would keep their opinions to themselves simply when they cannot think of an insta…
PHP 5.3
This post is a bit of a b*tch-fest, so please excuse me. I really do hate to be one of "those" guys who whines about something in Open Source without contributing directly to the project in question, but I just have to on this one.
As you can guess from the title, in project in question in PHP, and …
PHP quirk with inline "if"
Today, I discovered an interest quirk in PHP 5. I needed to set a single value based on various possible string values. For whatever reason, I decided a big set of "if/elseif" statements wouldn't do, and a switch would be overkill for simply setting a single value. What I tried to do was use in inli…
Throwing Down the Gauntlet
I'm throwing down the gauntlet to other language/app developers. For my place of work, I developed a Java Applet for uploading multiple files to a server. Sure, you can do this with other technologies to a certain degree (selecting multiple files at once in Web 2.0 isn't really possible, is it?) but…
Why I Admire PHP
I finally decided today that even if I may not like PHP, I certainly admire it. It's etched out a very good business for itself, and continues to flourish, despite calls of it's demise at the hands of Ruby (much like the calls of demise of Java).
One of the things I admire about it is that it doesn'…
Visit my Friends and Family
If you've enjoyed my site, please take a moment to visit my friends and family, many of whom have some interesting insights, and entertaining thoughts and ideas.
- Crause Family - the family website
- Peter Crause - my father
- Justin Crause - my brother
- Cencina Photomagic - great photographer
- Shawn Adrian - talented graphic designer, bad driver, and all-round fun guy