Wednesday, December 5th, 2007
After browsing through some other web developer’s websites and speaking to other developers, I think it’s a shame that there’s so much of the NIH Syndrome going on in PHP.
I find that PHP is one of the languages where NIH syndrome is rampant, or at least it has been, nowadays people are slowly starting to practicing some “reusage”. This is a good thing.
More…
Friday, September 28th, 2007
Well, your alternate language fanboys/flameboys will have one less things to throw at PHP Savants when an Armageddon-like debate is held yet about how PHP is a bad language. It has been a while, and I am 6 weeks late to make a post about it, but there’s been some exciting news in PHP - WE NOW HAVE NAMESPACES!!!! - Well for PHP 6 anyway.
More…
Thursday, May 17th, 2007
Being a self-taught beginner at one stage, I understand that code formatting and other concerns NOT regarding syntax is taken for granted, I mean, when you pick up your first programming language, the one thing you want is for your application to work, heck, when some beginners first started programming PHP, they have no idea what a “coding standard” is let alone it’s existence and haphazardly hack away line for line at their scripts without regard.
More…
Monday, May 14th, 2007
After fixing my wireless issues with Kubuntu Feisty, I went on a little break. I was sick of looking at my dual monitors and eye-candy rotating desktop cube *rotates cube* - well ok… maybe not the cube, but now that I’m back, I’d like to bring your attention to formatting your PHP code.
More…
Wednesday, April 18th, 2007
The Template View and View Helper patterns lend themselves nicely when it comes to developing a View Layer solution for PHP, or so I found out with the recent refactoring of Cubix (dubbed Cubix II). This View layer duo is very much a great candidate for a “tag team”. Each component performs a role and together make up a big part of the View Layer.
update: Now includes View Helper Locator example.
More…
Sunday, January 7th, 2007
For the occasions that you want to use a stored procedure you’ve written in MySQL 5 through PHP , the semantic tool to use is PHP’s built in mysqli objects/package.
According to the php.net: “The mysqli extension allows you to access the functionality provided by MySQL 4.1 and above.”
MySQLI stands for MySQL Improved, and it most certainly is with the addition of prepared statements and extensible Object Oriented interface.
More…
Monday, November 20th, 2006
After posting on Sitepoint PHP Community Forums again after a long while, I’ve come across some posts which ask what the php code snippet means:
$id =
isset($_GET[‘id’]) ?
$_GET[‘id’] :
false;
This php code block is called a Ternary Expression. It’s a shortcut for:
if ($_GET[‘id’]) {
$id = $_GET[‘id’];
} else {
$id = false;
}
More…
Thursday, May 25th, 2006
The Singleton Pattern is often mistakenly referred to as the OOP nuts “Global variable”.
Admittedly, I myself have been one of those people who had referred to it as such (this is an edited version you are reading), but in fact, the Global Variable tag that has been given to this pattern is actually a side effect - all you need to do is look at the name.
More…