Archive for the ‘Editorial’ Category

The Trend is Zend … in PHP

Tuesday, February 9th, 2010

zend framework logo

Hi,

People ask me from time to time, what PHP framework is the best one to learn?

Well, I always look at technology choices with two things in mind:

  1. How capable is the technology?
  2. How accepted is the technology?

If you look around, it becomes pretty clear, that if you want to learn an effective web application framework, you want to learn the Zend Framework – indeed, the trend is with Zend.

Zend framework being used by companies large and small

I know from first-nerd experience that the Zend Framework is being widely adopted. Just recently for example, Intuit and the BBC have implemented new web apps that are Zend Framework based.

… I know because my good buddy Jon Lebensold of Zendcasts helped build one of them.

There are plenty of other examples out there I’m sure … and I am confident that the trend will continue towards the adoption of the Zend Framework. With the PHP company (Zend) and IBM behind it … it doesn’t take a brain surgeon to figure that one out.

Thanks for reading,

Stefan Mischook
www.killerphp.com

Server Migration is Easy with PHP

Monday, July 13th, 2009

Recently we had to make an emergency move from our old servers (where we had been for 5-6 years) to our own dedicated server because of technical difficulties in the heads of the nerd’s who managed the servers killersites.com had been sitting on.

I will spare you the details of my server migration ordeal for now. What I want to point out, is that PHP (once again) has proven to be a great choice as the server side programming language.

PHP is consistent …

During this move, I had to deal with a bunch of web apps and scripts that included a nice buffet of technologies like:

- Perl
- PHP
- Java

.. Yes, the dreaded evil configuration hell that is J2EE!!

To make a long story short, migrating the PHP apps was a snap – copy over the files, set up the database and were off! On the other hand, I still have to get around to figuring out why the Perl and Java applications don’t want to run on the new server.

:(

PHP continues to rock, saving me time, money and headaches.

Stefan Mischook
www.killerphp.com

What happened to Ruby? And why PHP is KING of the Web.

Saturday, July 11th, 2009

In 2006 I created killerphp.com because I wanted to make it easy for web designers to learn PHP. I thought PHP was THE predominate web programming language and I felt every web designer should include PHP as one of their core coding skills:

- html
- css
- php
- javascript.

Then Ruby came along … for a short while.

What happened to Ruby and Ruby on Rails?

Once upon a time Ruby was the best thing since sliced bread … it was the language to replace all languages and everything else just sucked! Funny, that seems like ages ago.

Today though, the picture is different; Ruby’s shine has since lost its’ luster and the Rails train has practically fallen off the tracks – now there are other web frameworks in the Ruby world that have replaced Rails.

Addendum: Merb and Rails are merging … Rails hasn’t ‘gone off the tracks’. My bad.

So what the heck happened … what stopped the Ruby train ride?

(more…)

How to Build a Content Management System

Sunday, October 5th, 2008

OK, I just tricked you! This article is not going to teach you how to build a content management system with PHP from scratch.

Why not?

… Because building a content management system from scratch is (probably) a really dumb idea!! Now that I come to think about it, building any of the most commonly used software from scratch, is kinda stupid.

Things you should not build from scratch:

  • Content Management Systems
  • Blog Software
  • Forums
  • Directory scripts

The Top 3 Rules in Programming

The real estate business has a famous set of rules – the top three rules in fact:

  1. Location
  2. Location
  3. Location

The idea behind this rule, is to stress how important location is to a piece of property. In software development (programming), we have a similar set of key rules:

  1. Reuse
  2. Reuse
  3. Reuse

(more…)

PHP Rules!

Tuesday, July 15th, 2008

Hi,

I was chatting with my Java buddies recently and they had just discovered an alternative lightweight framework for building Java based web applications – something called Spring. The Spring framework is equivalent to the Zend Framework or Code Igniter.

I first learned about Spring before it was called Spring, back in 2002 when the inventor of Spring wrote a book (Expert One-on-One J2EE Design and Development) criticizing how ridiculously heavy Java was becoming.

… I was right there with him! So much so in fact, that I moved into the ultra nimble PHP.

:)

Anyway, since then, the Spring Framework has become one of the major players in the Java world. I’ve been out of the Java world for a while now, but I do check things out once and a while just out of curiosity. Besides, the PHP community can learn a lot from Java … both the good and the bad.

The point of this article:

I checked out the official site for the Spring framework … they use Drupal! For those of you that may not know, Drupal is a PHP based web application.

Nice!

Stefan Mischook

www.killersites.com
www.killerphp.com

Note to CodeIgniter nerds: please, no looping code in your views.

Thursday, June 5th, 2008

codeIgniter-logo

I was researching things ‘nerd’ on the Web today, and I found myself at the CodeIgniter website.

For those of you who may not know, CodeIgniter is an MVC PHP framework.

What is an MVC framework?

I won’t go into details here since we’ve covered MVC basics elsewhere. Let me just say though, that an MVC framework is a bunch of PHP code organized into a reusable structure/system designed to make building web applications easier.

MVC is short for:

- Model
- View
- Controller

The general idea is to keep code separated by it’s function.

(more…)

Does Wordpress 2.5.1 suck?

Wednesday, June 4th, 2008

wordpress-logo

I know I will probably get blasted/flamed for this post … but that’s the life of a nerd with an opinion.

So does WP 2.5.1 suck? I’m not sure!

:(

UPDATE:

I have since discovered new information and have resolved the problem … kind of. You can find details in the comments below.

-

So what’s the problem with Wordpress 2.5.1?

I just recently installed the this latest version of Wordpress (2.5.1) and quickly found it hanging (while trying to load a page) for as long as 40-50 seconds!

I then proceeded to isolate the potential causes (database, custom fields, custom theme) and have since found out that something stinks in 2.5.1’s core.

(more…)

Ruby on Rails – a paper dragon?

Sunday, May 25th, 2008

Hi,

I was going to start this off with some analogy on how Ruby is like dating some ‘hottie’ that turns out to be crazy .. but I just couldn’t make it work …

-

When Ruby on Rails started to gain some momentum a year or so ago, I decided to take another look at the Ruby language itself along with the Rails web framework.

ruby on rails logo

Before I get to the heart of this article, I have to tell you that I love the elegance of the language … it is fun to use.

But, being a nerd who’s has experienced disappointment in promising new technologies in the past, I decided to dig a little deeper into Ruby and Ruby on Rails before committing to use it in real projects. I did my research … and I’m glad I went with PHP instead.

… Let me just say that this Twitter news, only reinforces my own thinking from a year and a half ago.

Why did Twitter decide to move away from Ruby and Ruby on Rails?

Well according to TechCrunch, the boys at Twitter found that Ruby could not be made to scale.

Update:

Apparently this Techcrunch report was later refuted by the Twitter people. Nonetheless, the point of this article still holds true.

-

(more…)

Angry self righteous tech-nerds

Thursday, May 22nd, 2008

I’ve been involved in the tech business for many years. Though technology is constantly changing, there is a constant:

Angry self righteous tech-nerds.

Who are the angry-nerds?

Angry-nerds are those programmers, network administrators or any other geeks that have a major chip on their shoulders.

Typically, they are in their twenties, with little experience, and are just out of school … full of academic dogma and ritual.

It takes little to set these guys off …

When confronted with a tech idea they don’t agree with, or they find that a concept (or way of doing things) is ‘below’ them intellectually .. they become arrogant, hostile and their not so inner nerd-child appears.

Generally these twits are useless to have around … besides being annoying.

Angry-nerds like to attack beginners

One behavior that is consistent in the angry-nerd population, is their collective disdain for those trying to learn a new technology. If that wasn’t strange enough, they are even critical of those who would try to help beginners get on their feet.

Why?

I think angry-nerds are just looking to bully people they feel they can bully. A little payback I suppose …?

-

The classic arguments that bring out the angry-nerds (frothing at the mouth), include:

(more…)

Managing Clients – draw the line and hold your ground.

Monday, April 14th, 2008

One of the most frustrating aspects of being a web application developer (a Web nerd) is found in the dynamics of dealing with clients.

I’ve been known to say: “I love everything about programming … except for the clients!”

This aspect of the web business (managing clients,) falls under the umbrella of project management – something every web developer, must learn at least a little bit about.

(more…)

Killer Open Source PHP Projects

Thursday, March 27th, 2008

Part of PHP’s power is actually found in the variety of open source (free to use) PHP based applications. I’m talking about things like blogs, web frameworks, forums, cms’ etc …

… I was just thinking, that a list of ‘killer’ PHP open source projects would be useful … for a few reasons:

  1. Once upon a time, a master programmer I know gave me a great piece of advice:

    “Grasshopper, it is always a much better idea to use proven code (that means good open source projects) than to start from scratch.”

  2. Checking out examples of quality code, is a great way to learn how to become a better programmer.
  3. Who doesn’t need a list of ‘best of breed’ projects?

I’ve been snooping about the PHP world for a while now, and I’ve come across some crappy PHP projects (I will not name names) but I’ve also come across many great PHP projects.

To be totally honest about it, we’ve seen much of the good stuff coming out of the PHP world, in the last few years.

… PHP developers are leap-frogging ahead with regards to their level of skill and the quality of code they produce.

That all said, the following are my favorite ‘killer’ PHP open source projects:

(more…)

Wordpress Videos

Tuesday, January 8th, 2008

I just got back from a trip to Thailand, so I should be back creating new videos and articles on PHP. In the meantime, I have a few Wordpress videos that might interest some of you.

About the videos:

I cover just the basics in the videos I have up now, but I am working on new videos that will teach you how to create Wordpress themes from scratch.

How does this relate to PHP?

… Though not required, PHP knowledge can help when creating themes for Wordpress. This leads me to why I posted this on Killerphp.com: part of the reason I created killerphp.com is because Wordpress is written in PHP. Wordpress is a good example of object oriented PHP and is a great piece of software that can be used as the foundation for other projects – Wordpress platform?


From my killersites.com blog:

I decided to create a dedicated Wordpress section on killersites.com

Right now, I only a have a few videos (with a bunch more coming) but I am also thinking of maybe some written tutorials etc…

The videos:

wordpress-logo

So far I’ve only added a few videos but have another 40 minutes of video to edit that should be up this week.

Any comments or suggest are welcome.

Thanks,

Stefan Mischook

www.killersites.com
www.killerphp.com

Why ASP, ASP.NET, JSP, Ruby and Cold Fusion Suck .. for web designers.

Wednesday, November 7th, 2007

The article’s title (I admit,) will get some people little miffed at me. But, what can I say, the truth hurts!

Seriously, this statement is valid and is worth talking about because there are a lot of web designers out there who are considering the leap into building dynamic (database driven) web applications. And with so many choices (ASP, ASP.NET, Ruby etc …) it can be very frustrating when trying to make that choice.

Of course, I believe (and know) that PHP is the choice language/technology for web designers. But why are the other technologies not a good choice for web designers?

(more…)

Running Windows on your Mac

Tuesday, October 16th, 2007

Hi,

This is a touch off topic but I thought that some PHP’ers out there might be interested nonetheless.

Preamble:

I got my first Mac about 8-9 months ago and I have to say after having used Windows (all flavors) since 1994, I have to admit that OSX is the best operating system I ever used. Yes, even better than DOS!

:)

The problem is, that I have a few Windows only applications that at first glance, (it would seem,) will not run on a Mac.

… That said, I’ve have found that this is actually not a problem at all … thanks to a few options that you have to run Windows and Windows based programs on Mac OSX .

I wrote a whole article on running Windows on a Mac and even created a couple of demonstration videos!

How does this have to do anything with PHP?

Practically speaking, not too much. But, Mac OSX is Unix under-the-hood and so are most Web Servers.

That means using a Mac will give access to a whole slew of very useful Unix tools that you don’t have on Windows (a.k.a.: the crasher,) and you will gain a better understanding of what you can do on Linux/Unix based web servers. PHP is better tied into Linux anyway.

Stefan Mischook

www.killerphp.com

Installing PHP and MySQL on the Mac with MAMP

Friday, September 14th, 2007

In my beginners php videos, I recommended XAMPP as the way to easily install Apache, PHP, MySQL on a MAC.

Well, I just discovered something called MAMP at:

http://www.mamp.info/en/index.php

This nifty little application allows you to (really easily) install Apache, PHP and MySQL. You are provided with a standard DMG file that you simply drag to your applications folder.

MAMP has a pro ($) and a standard version … all programmers need (to do their development on their local machines,) is the free standard version.

Once installed you can start MAMP up (and thus Apache, MYSQL) as you would any other program … and this is what you get:

Mamp Control Panel

As you can see, you can start and stop the servers and tweak the MAMP settings (example: where Apache looks for web pages … the Apache document root etc).

The MAMP ‘Start Page’:

Like XAMPP, MAMP comes with it’s own ‘Start Page’ where you can access:

  • MySQL password information.
  • phpMyAdmin
  • SQLightManager

The Screenshot:

Mamp Start Page

Dashboard Widget!

But what’s even more cool, is that MAMP comes with a Dashboard widget:

Mamp Dashboard widget

Conclusion:

I am currently using MAMP to do some test on a PHP based CMS (Drupal) and MAMP allowed me to set up my Mac in about 5 minutes … maybe 4.

Stefan Mischook

www.killerphp.com

Why PHP is the choice language – a business owners perspective.

Friday, August 10th, 2007

php logo

Preamble

I have written this article to speak to business owners and other non-nerd types. So you will not see me go into nerd-details regarding my arguments.

Instead, I concentrate on the business arguments and only touch on the technological issues underlying them … when it makes sense to mention the nerd stuff.

Introduction

I’ve already written about why I think PHP is the language that web designers should learn and why Ruby is no threat to PHP.

One thing I feel that needs to be addressed (in non nerd terms,) is why it makes business sense to use PHP for your web based applications.

A Non-Biased Opinion

Before I get into the meat of my arguments, I want to point out that I am not some PHP nerd looking to sell PHP.

Yes I am the Killerphp.com guy, but I decided to put up this web site because I concluded that PHP was the choice language today.

… This from a guy who has written software in 6-7 languages (could be 8-9, I’ve lost track) over the years.

Up until a few years ago I was mainly a Java nerd – though I used several other languages too.

The point is that after years of experience as both a programmer and business owner managing programmers and projects, I found that for small and medium sized projects (I can’t comment on big enterprise jobs,) PHP has been the most effective language for me.

The Business Questions

When you are choosing a framework/language for your new project, you have to ask yourself a few key questions:

  • Is the language reliable?
  • Does the language have a strong community?
  • Is it easy to find programmers who use that language?
  • Is the language productive?

All these questions relate to cost. In a nutshell, if any of these things fall short in the language/framework you choose, it’s going to cost you more money – sometimes a lot more!

What do I say ‘framework/language’ and not just ‘language’?

I want to keep uber-nerds from criticizing me for calling PHP’s competition (like ASP.net) a language, when strictly speaking, ASP.net and other competitors are not programming languages. Rather they are frameworks that enable the creation of database-driven web sites.

Translation into non-nerd English:

PHP itself is a language but ASP.net, classic ASP, JSP are not … but they do the same things as PHP. These competing technologies are frameworks (for creating database-driven websites,
) built on top of programming languages.

For instance, JSP (the framework) uses Java as its’ programming language to do its’ thing and classic ASP typically uses VB Script.

Contrast this to PHP, that was created (from inception) to build dynamic database-driven websites.

… but I digress from the main point of this article.

My business experience and how it has shown me that PHP is king.

As I mentioned before, besides being a programmer and all around nerd, I’ve actually been (and still am) the ‘business owner’ hiring and managing a small team of programmers.

So why PHP? Remember those 4 points I made above? Well PHP shines (outshines) all the competition when you look at them as a whole.

Perhaps in one area or another, one of the other technologies can match or may even beat PHP, but non of them are so well rounded.

One story of my own

I will only recount one quick story that makes my (business) point. About 2-3 years ago I decided to build a new web application using my favorite language at the time: Java.

After months of stuttered development (and $10 000 – $12 000 not including my time,) I had a stuttering mess that kinda worked. This happens all too often in software development BTW.

Anyway, I decided that this had to be fixed, so I had it reproduced with PHP while (at the same time,) adding new features. My cost for the total rewrite came out to $700. I should have went with PHP from the start …

Stefan Mischook

www.killerphp.com
www.killersites.com

Why Learn PHP?

Monday, April 16th, 2007

One of the two main reasons I put up Killerphp.com is that I believe every web designer should learn PHP. It is a position that (as far as I know) is unique on the Web – no other web-nerds have mentioned it so far.

I suppose I could go on and write about why I believe this, but why not watch a video of me instead?

:)

New PHP article in Web Designer Magazine

Wednesday, November 1st, 2006

Hi,

I wanted to mention that I have a new PHP article out in the Oct issue (#124) of Web Designer Magazine.

Web Designer Magazine - PHP tutorial

Article Title:

‘Learn to build a php contact form while learning to process forms and send email with php.’

I’ve also released Quicktime versions of the PHP video tutorials – they come with the magazine’s DVD.

Thanks,

Stefan Mischook

I did not forget you guys.

Thursday, August 24th, 2006

I been away from making videos for about a week now because of a surprize root canal. This ultra-painful experience (I actually lost 10 lbs!) has prevented me from doing any video work (any work at all,) for last little while.

Let that be a lesson to you all:

  • If you grind your teeth in your sleep (as I do,) get a mouth piece, otherwise you may end up with an abscess tooth or two.
  • Take care of your teeth, otherwise they will come back to byte you … 3 sleepless nights and $1600 for me.

I should be back on the videos within the next couple of days now that the pain has gone.

Reaction to killerphp.com

Wednesday, August 16th, 2006

I’ve received many emails over the last few years, with complaints of how confusing PHP seemed … of how hard the documentation on the web seemed to be.

So I created killerphp.com to help those web designers who seemed to be more inclined to design and not to code.

THE WEBSITE LAUNCHED

I put up the first few videos in July, and at the same time, I let people know on the killersites.com forum about them.

Since then (and to my surprise), in the month and a half that killerphp.com has been online, there has been some interesting things happening:

  • The Digg community seem to like the videos: over 800 diggs last time I checked.
  • The people at Zend Developer zone mentioned an article I wrote and recommended my videos for beginners.
  • Many PHP sites started mentioning killerphp.com.

According to Google, the term ‘killerphp.com’ has appeared in over 18 000 web pages – in less than 2 months! Overall, not a bad reaction in this short a time.

IT’S NOT ALL BERRIES AND CREAM AT KILLERPHP.COM

Generally a positive reaction to the material, I do occasionally get complaints from (what I guess are) experienced PHP programmers, that the videos are too simple or that I’m not the most exciting speaker.

I know I need to keep working on my nerd-speaking skills but too simple!?

… For me, that means I’ve done my job – I’m trying to teach people who don’t know php …

That said, I do appreciate everyone who has taken the time to visit the site and I especially appreciate the feedback, both good and bad. I will try to improve and expand killerphp.com based on what you tell me.

Thanks again,

Stefan Mischook

Top of page  go to top of page