Save 80% off your web training by getting web hosting - learn how
Complete Web Designer, Complete Web Programmer, or Video Library

Denial-of-service attack … in an image.

May 20th, 2013

Hi,

Not strictly PHP but something that any web programmer might have to deal with from time to time: denial-of-service attack (DoS attack).

What is a DOS attack?

Some dirty nerd (or group of dirty rat bastard nerds) decide they want to make your site or your servers unusable or at least, much less usable. What they do is flood the server with request in attempt to overload the CPU, memory and bandwidth.

… It just happend to me here on the killersites.com/killerphp.com servers. Some jerk-store using a microsoft server out of Washington, started flooding our PHP based forum with request … millions a day in fact! We have a fairly new dedicated server with multi-core processors, so we did not go down, but the server did get noticeably slower.

How did I discover it?

Besides noticing the server was acting a little sluggish (kinda like me after a few beers,) I popped open the web stats and noticed a huge amount of traffic from one IP address – that isolated source of big traffic pretty much tells you what you need to know.

How do you fix it?

Well, a good firewall is supposed to catch these things and block them … it seems my firewall falls asleep on the job sometimes, so in this case, I had to manually go in and ban the IP address. Once banned, any request from that IP are just dropped. This is not a perfect solution since the nefarious nerds can then just switch IP’s to continue the attack … but it seems to have done the trick this time.

Check out the chart below, showing the KillerSites server traffic flow, before and after I blocked the attacker’s IP:

DOS attack

Thanks,

Stefan Mischook
killerphp.com

Complete Web Programming Training … for only $20!

May 5th, 2013

Complete Web Programmer Disc

Hi,

I will start with the main point: you can now get the Complete Web Programmer for only $20 (instead of the normal price of $100!) through our special deal. Read below to learn about the details …

One of my most popular training packages is the Compete Web Programmer, because it takes you from knowing nothing about web programming, to having commercial web programming skills with PHP and JavaScript. Some nerd details:

The Complete Web Programmer offers you over 33 hours of training that easily guides you from total beginner to becoming a productive web programmer. You will learn:

  • PHP
  • PHP and MYSQL
  • JavaScript
  • jQuery
  • PHP OOP

… And much more!

Every student of web programming needs to get a hosting account at some point.

Being able to properly use a hosting account is part of the process of learning web programming and besides, you will probably need a website at some point too.

With that in mind, we’ve partnered with a popular hosting company where you can now buy the $100 Complete Web Programmer package for only $20 when you get a 1 year hosting package … this will cost you $3.15/month, or the cost of one coffee per month!

It’s is by far the best deal we’ve offered or seen anywhere. If you were ever planning on learning PHP, Javascript or any of the topics covered in the Complete Web Programmer, this is your chance to do it for practically nothing.

Stefan Mischook
killerPHP.com

How PHP Frameworks Can Go Bad

May 3rd, 2013

Hey guys. My name is Roberto and I have been a web developer for the past five years. I will be blogging about interesting things in the life of a developer

I have worked with a few different frameworks over the course of my development career (e.g. CodeIgniter, Laravel, Symfony) and have also tried/tested many others. I always felt that frameworks are these perfect libraries of code that will make my life easy, and generally, that has been the case.

But over the last few months, I realized that frameworks are not perfect. Not even close. And although they do make annoying things like form validation or URI routing super easy, it seems that the simplest things can become buggy or complex.

No framework is perfect

Case and point: I have been working on a pretty decent sized project using CodeIgniter (my 4th project using this framework). CodeIgniter seems to be everyones “first”. The first framework where beginner PHP developers learn important skills like OOP and MVC.

But as I said, things are not perfect.

I kept getting some weird behaviour with PHP sessions, specifically when logging in and out in IE (insert IE insult here). It took me a few hours to solve the issue, mainly by partly rewriting some third party session library. But I felt it was really weird that something as simple as PHP sessions was broken (I mean there aren’t even that many PHP sessions functions)

So whats the point…

I basically have two main points:

  • Frameworks are not perfect libraries of code that will make developing a breeze. They definitely do help (without a doubt), but dont be surprised to find bugs that will take you more than a few hours to fix.
  • Saying that, fixing these bugs actually helps you become a better developer. It gets you to get into the smaller details and overall you learn much more about developing in PHP

When developing somewhat complicated web apps, I think using a framework is almost a must. Choosing a framework on the other hand…thats for another day.

For more discussion, you can find me on twitter here

A Million Lines of JavaScript!

March 28th, 2013

Hi,

I recently read an article (in Techcrunch,) where the author suggest that JavaScript may have problems with projects with over a million lines of code … and because of that, you should consider alternatives.

WHAT!?

This is a silly thing to say because for 99% of us, we will never even come close to writing that much JavaScript in a single application.

… This is a rare project indeed!!

Experience has taught me that you should not make big technology changes based on rare events or rather, rare potential needs. Instead, your choices should be made based on common day-to-day needs.

Today, JavaScript is king of the client side, as it is supported by all browsers and on all operating systems. In addition, JavaScript has a huge community behind it with amazing frameworks (like JQuery) that you can leverage as a web programmer for free.

So don’t listen to crazy nerds who try to strike fear in you, with stories of massive meteors crashing into earth destroying the planet. Instead of worrying about that and other crazy lottery ticket like events, just pay attention to when you are crossing a busy street, and you should be fine.

Thanks for reading,

Stefan Mischook
killerPHP.com

Learn More Than PHP

March 5th, 2013

Hi,

I am HUGE advocate of learning alternative languages and frameworks. So that means if you are a PHP Zend man, I would suggest learning another MVC framework like Laravel or any other PHP framework that looks interesting to you – there are many to choose from:

… Etc

PHP programmers should learn a competing language

These days, it’s pretty clear all PHP programmers must learn some JavaScript … the Web is driven by that silly little client-side language! Besides, PHP and JavaScript go hand-in-hand … think of Json for example.

But … this may shock some of you hardcore PHP nerds, it’s also a good idea to learn another competing language too! Personally, these days, I would suggest learning a little Ruby. Ruby is very popular, sophisticated and by comparing how Ruby does things vs PHP … you will become a better PHP programmer because of it.

Stefan Mischook
killerPHP.com

PHP Frameworks Explained

February 26th, 2013

Hi,

So you know a little PHP and you’ve heard about PHP frameworks like Zend, CodeIgniter and Laravel but you have no idea what they really are and why you might want to learn them … if this is you, watch this video:

If you like the video, be social about it and let people know!

Stefan Mischook
killerPHP.com

CodeIgniter vs Laravel

February 22nd, 2013

Hi,

So a bunch of CodeIgniter nerds/contributors decided to build a new framework because things about CodeIgniter didn’t sit too well with them … tell me something new.

Don’t get me wrong, I am not putting down the Laravel crew for what they did, I just wanted to point out this happens all the time.

So what’s the point of this Friday afternoon blog post?

Read the rest of this entry »

Why I will NEVER touch Java again.

February 22nd, 2013

Hi,

Some of you know that once upon a time, I was a big Java programmer … I loved Java! But that was a long time ago and I will never go back. I left Java because it became a big bloated monster, as the effects of corporate design-by-committee took hold.

… When that happens, it is the death of anything really!

Actually, I can quickly summarize why I left Java for PHP … first the Java code:

public class verbosity {

public static void main(String[] args) {

System.out.println("This sucks because it takes too many lines of code!");

}

}

Now the same thing with PHP:

echo"OMG! One line of code! One line ...";

Yes, PHP is a little bit more verbose OOP style .. but I am just making a point that Java is very verbose.

Enough said.

Stefan Mischook
killerPHP.com

Form Validation with PHP and Javascript – mini Video Course.

February 13th, 2013

Hi,

I want to announce that we just released a new mini video course on form validation with PHP and Javascript.

Some details about the video course:

In this Mini Course, learn how to use both PHP and Javascript to validate HTML forms.

Proper form validation is helpful to everyone involved:

  • It allows the web developer to double check the data being sent to the server
  • Its helpful for the user, as they can be assured that any data entered into the form is mistake free
  • It is also helpful for the site owner, as they can be assured that any data they receive is valid

This is another one of my mini video courses – short courses designed to teach very specific things, they cost only $4.99 and run about 30-60 minutes depending on the course.

Thanks,

Stefan
KillerPHP.com

Web Programming for 2013 … and Beyond!

February 5th, 2013

Web programmers have to keep on their toes – you can’t let yourself fall behind using old technology that nobody is interested in. Flash anyone?

… I didn’t think so! Ok, let’s start:

1. PHP is STILL King of the Server Side!

PHP was not the first language I learned (it was JavaScript) and PHP is not the prettiest language out there … but it is overall the most utilitarian.

Read the rest of this entry »

iOS or Android Programming?

February 4th, 2013

Hi,

So you’re a young nerd programmer who is trying to decide which direction to go in when it comes to programming for mobile devices, should you learn iOS development or Android?

Bottom line: Learn HTML5 and JavaScript development.

Some details:

At this time, Android is by far the most popular mobile OS with about 70% of the market share, whereas iOS accounts for about 20%. But, I was told recently that iOS is much more common online – it seems many Android phone users don’t get a data plan?

Read the rest of this entry »

iOS Programming is going to go Niche … then Ultra Niche!

January 14th, 2013


Hi,

One of the things that I see time and time again, is a (once hot) technology … fall into a niche.

This time, I think it is native iOS programming that will slowly fade away. Why?

Here are my top five reason why native iOS programming will become niche:

  1. iPhone penetration is falling – Android is now king of mobile.
  2. HTML5 and CSS3 based apps can can do just about everything native iOS apps can.
  3. HTML5, CSS3 and JavaScript are easier to learn than objective C.
  4. HTML5 and CSS3 apps are cross platform – iOS apps are not.
  5. There are a lot of JavaScript programmers out there ready to roll – no need to learn another language!

So think about it from a clients perspective; if you can build your application with HTML5, CSS3 and JavaScript and have your app work on Android, iOS, OSX, Windows 8 etc … why would you invest in an app that runs only on iOS?

… Most businesses wont.

Stefan Mischook
killerPHP.com

PHP Tag Cloud Mini Video Tutorial

December 13th, 2012

Hi,

We’ve just release the first of a few mini video courses: PHP Tag Cloud with MySQLi

It’s a cool little video tutorial that runs for about 51 minutes, and it teaches you how to create this tag cloud.

Besides teaching you common tasks, the mini courses are designed to introduce people to different techniques and principles in easy to follow byte sized packages.

… There are many more to come.

Thanks,

Stefan Mischook
killerPHP.com

Learning PHP: going beyond the basics

June 3rd, 2012

Learn PHP by Building Web Applications

Once you have an understanding of basic PHP concepts, the best way to develop your skills further, is to actually start building PHP applications – things that actually do something!

Fortunately, the Web has matured much in the last decade, and we now know what types of applications people are typically looking for – things like:

- shopping carts.
- log-in systems.
- content management systems.

With that in mind, we’ve put together a package that teaches you how to build these things, while teaching you more advanced PHP.

What’s really cool, is that once you’ve completed the project courses, not only will you have learned a lot about creating REAL PHP applications, you will have these applications that you can then use in your own projects, or your client’s projects. Check it out:

PHP Projects – Learn PHP by Building PHP Applications

Thanks,

Stefan Mischook
killerphp.com

PHP, Zend Framework, Ruby and Web App Frameworks.

May 20th, 2012

I recently had a conversation with a good friend of mine who has his finger on the pulse of the web app developer community – whether it be PHP, Ruby and even .Net.

So I asked:

Last we spoke, you mentioned that the Zend Framework was in a do or die situation?

Can you elaborate on that? I am just curious.

Stef

His answer:

Something I’ve noticed is that the idea of a monolithic framework is kind of dying. If you look at ruby on rails, it started off as a monolithic code base maintained by 37 Signals. Because of that, they wrote the Javascript layer, the ActiveRecord implementation for persistence, the view-controller architecture etc…

Rails 3.x is a completely different monster. They replaced their JS layer with jQuery. They replaced their ORM with Arel and ActiveRecord is now a thin wrapper around Arel. They replaced their web server archictecture with “rack” middleware. What this has done is standardized certain portions of the framework to the point where they are truly modular. In the rails community another framework will advertise that it’s “rack compliant” or “built on top of Arel”. What this means is that 37 Signals isn’t *the* ruby company and so they can specialize and delegate, while providing a strong brand that promotes software development best practices.

In the ZF community, ZF 1 worked ok, but it relied on a few anti-patterns (heavy use of singletons in order to ensure that performance wasn’t abismal). ZF 2 is trying to address that, but they have a really small team of strong PHP developers that are working on the core pieces (like the MVC implementation and the persistence). This has made the release of ZF 2 “just around the corner” for about 6 months now.

Also, because the people doing the rewrite wrote the first ZF, they want to clean up all their mistakes and so there’s a bit of ivory tower engineering going on (heavy use of dependency injection and inversion of control patterns), which will make the framework less friendly to beginners. Add to that the fact that Zend_Db was a huge face-palm and that people want integration with Symfony (a competing PHP framework) components, Zend is going to have to give some ground and start making some tough calls to deliver.

Finally, they HAVE TO DELIVER, because ZF 2 is written with the assumption that you’re using PHP 5.3+, which will be a huge shift for large code bases that haven’t seen a serious rewrite since PHP 4. If they don’t make ZF 2 a resounding success, the community around ZF will probably move to greener pastures (my money is on symfony or just not PHP).

my 2 cents,

… Some interesting thoughts, so I continue:

Very cool.

Now that a few years has passed, what do you think of Ruby vs. PHP these days? When we looked at it, I found the libs a little weak .. I imagine all those wholes are filled by now.

Stef

His response:

I think Ruby’s shaping up nicely for getting something done quickly and elegantly. There’s a huge aversion to ivory tower architecture, which I appreciate. I think that there are still performance issues on the whole that are being addressed, but now there are a lot of different ways of dealing with it (or even not dealing with it by using a cloud service like Heroku).

I would also look at erlang. Erlang is a whole different paradigm, but I could see it growing in terms of handling middleware development or places where you need high-volume, high-concurrent systems that are scalable. This is a language that I’m hoping to dive into in 2013, but I think Ruby / Javascript will be my bread and butter.

The Javascript framework wars have really heat up lately, and I would be looking at BackboneJS. It builds on top of jQuery to provide a very nice model for wiring events and writing views / models / controllers in the browser.

My final thoughts

My buddy has been developing web apps for years and has worked with several technologies – he like me, is language agnostic. We pick the best tools/language for the job, and we don’t get too religious about anything in particular.

So does this mean PHP is on its’ last legs or am I advocating Ruby? No, PHP is not going anywhere. I decided to post this just as food for thought … something that you can keep in mind as you develop your skills and your career.

Stefan Mischook
killerphp.com

Learn PHP by Building PHP Projects

May 18th, 2012

Learn PHP by Building Web Applications

Hi,

Once you have a basic understanding of PHP, the easiest way to develop practical and marketable PHP skills, is to actually build things that people want!

With that in mind, we’ve put together a brand new PHP video training package that does just that. Check it out:

Take your basic PHP skills to the next level by developing practical PHP based web projects including shopping carts, content management systems, and much more!

Learn More

If you have any questions, please feel free to contact me.

Stefan Mischook
killerphp.com

Why did I Drop Java for PHP?

April 25th, 2012

Hi,

I got a pretty good question today, something I may have never talked about before: why did I drop Java?

Short answer:

Speed.

… It is just so much faster to develop in PHP vs Java. Same can be said for Ruby, and in fact, many of those in the Ruby ranks, are disaffected Java programmers.

Also, Java web hosting on a shared server can be problematic because the JVM requires a lot of server resources and so if you are creating Java web apps, it is best to have a dedicated server to deploy too.

So does that mean Java is useless?

No. But it is something that you DON’T use for small and even medium size web application development. Best to use Java for larger systems and Android programming.

I did love Java once, but like a fat old girlfriend, you just have to give em’ the boot if they get too fat and too old.

;)

Stefan Mischook
www.killerphp.com

HTML5 and the Rise of Pragmatism

April 21st, 2012

Hey,

Anyone who has read anything I’ve written (or watched my video blogs,) knows I can’t stand academics. I was particularly vocal against the early 2000′s Web Standards movement’s zealotry, wherein reality was pushed aside in favor of code purity.

These nerds would ignore reality – for example:

  • They would ignore how the most popular browsers where interpreting code – often times in a method contrary to their nerd wet-dreams. And they would come up with harebrained hacks to jam in their ‘compliant’ code. Hacks that eventually broke in many cases, defeating the supposed original purpose of the Web Standards movement!
  • They would obfuscate what the actual browser use was in terms of real people surfing the Web. They would come out with numbers that did not reflect the reality they were desperately trying to ignore: that the vast majority of people surfing the Web were using web browsers (Internet Explorer) that did not play nice with their ideas of how a web browser should read code.

Read more

Build A CMS Training Video Part 44 – Change Password Form

March 12th, 2012

This is part 1 of a 3 part video tutorial where we teach you how to build out a password form, which will also give you the foundation to build other CMS forms. From our Build a CMS Course!

To find more courses on PHP Programming, check out our Killersites Video Tutorial Library!

Note that all of our videos are in a higher quality when purchased from our Killer Video Store or by subscription to our Video Tutorial Library!

Thanks,

Jody
killersites.com

Build A CMS Training Video Part 41 – CMS Option Changes

March 5th, 2012

This is part 2 of a 4 part video tutorial on CMS option changes, where we start building up the files that the links link to. From our Build a CMS Course!

To find more courses on PHP Programming, check out our Killersites Video Tutorial Library!

Note that all of our videos are in a higher quality when purchased from our Killer Video Store or by subscription to our Video Tutorial Library!

Thanks,

Jody
killersites.com

Created By Stefan Mischook  |  Top of page  go to top of page