by Kevin Schroeder | 12:00 am

PHP Deployment: Application considerations and process

It’s been a while since I’ve posted anything of any real significance. Part of that is because I have been working pretty hard on a webinar for Zend regarding deployment. Deployment is no small subject and testing your deployment options is no small undertaking. Then add other responsibilities and you end hav…. blah blah blah.

So, I have a lot to write about and with some of the things coming up I don’t know how much of what I want to write will be written. But let’s start with the basics. If you want to see the slides from the webinar here they are for your enjoyment.

  READ ARTICLE
1407 words ()
by Kevin Schroeder | 12:00 am

Why I don’t think type-hinted foreach loops are a good idea

There was a Twitter poll going around this morning that I thought was kind of interesting and got me thinking. It asked whether or not type-hinting in a foreach loop would be a good idea. The argument was that the same arguments that go for have type hinting in functions/methods apply to loops. Those reasons would primarily be structure. Having a more rigid structure means that the likelihood of a runtime error is lessened to a much greater degree. I agree with this statement, but I don’t think that it applies to loops. And here’s why.

  READ ARTICLE
554 words ()
by Kevin Schroeder | 12:00 am

Why you should be careful with phpinfo

I recently posted an image on why you shouldn’t put phpinfo() calls in your code.

There were a couple of comments from people asking “why not?”

Here’s why not.

Go to Google

Search for inurl:phpinfo

Check out the results

At the time of writing there were 4 pages on the first result page that were broadcasting their settings.

Here’s another fun one. Search for “inurl:phpinfo root”. Lots more.

There’s a bunch of information that you will see.

  READ ARTICLE
186 words ()
by Kevin Schroeder | 12:00 am

JQuery getElementsByName

I was recently informed of a bug in my turing test for comments on my site. It turned out that there was a problem that the bit addition scheme when working with IE. Since about 4% of my visitors are IE users it never really came up; until it did. 🙂

Anyways, the way I was doing the test before was with some basic bit shifting done in JavaScript like this

  READ ARTICLE
327 words ()
by Kevin Schroeder | 12:00 am

Not another cloud article

Where is the cloud?

Are you hype averse? Start reading at paragraph number 4. This is paragraph number 0.

  READ ARTICLE
1255 words ()
by Kevin Schroeder | 12:00 am

The benefit of Zend Server Monitoring

I was sitting at my computer this morning when an email came in notifying me that there was an error indexing my Lucene content. This error was generated by the Zend Server event monitoring system. I went to the site and tried doing a search but saw that the results were coming up double.

I re-ran the indexing task and the searches started coming up the way they should. Mean time to resolution? 5 minutes. Customer impact? Zero. Why? Because I knew there was a problem before anyone coming to the site did. THAT is the benefit of Zend Server Event Monitoring.

  READ ARTICLE
113 words ()
by Kevin Schroeder | 12:00 am

Using a DB validator in Zend_Form

Doing some work on a little project of mine while waiting for the keynote to start. What I’m doing is writing a form that needs to make sure that a record is unique in the DB. Doing that in ZF is really easy. Simple set your validator as Db_NoRecordExists. What this does is during the Zend_Form::isValid() functionality it will query the database as part of the validation process. The only parameters you really need are the table and the field if you have already set a default adapter for your Zend_Db models. That makes it really easy to use. Here’s a slice of how I did it.

  READ ARTICLE
550 words ()
by Kevin Schroeder | 12:00 am

The Lost Art of Simplicity – My Take on Josh Holmes’ Brain

Any time someone stands up and says “y’all are doing it wrong” I take notice. Then I usually lose interest. But if that person starts to resonate with my own experiences, particularly my own frustrations, then I start to take it seriously.

I have been following Josh Holmes for a little while and he has a talk he started last year called the Lost Art of Simplicity. I took notice. But I never lost interest. His basic spiel is that we developers make complex solutions for simple problems. Nothing surprising right? Except that he attributed it to ego. Ouch. But is that true? Have you ever met a software architect?

  READ ARTICLE
749 words ()
by Kevin Schroeder | 12:00 am

Zend Studio trick #523

I learned a new tip for Zend Studio. When you have a long class like Zend_Application_Resource_Modules you can get code compltion on it by typing ZARM instead of the full name in the PHP editor.

  READ ARTICLE
70 words ()
by Kevin Schroeder | 12:00 am

Best Practices – Part 2

I just got out of Matthew and Lorna’s tutorial on Best Practices and my mind is swimming with all of the things I want to try. So, pretty much a normal day for me. Part 1 can be found in the related links on the right hand side.

Part 2 is basically more of the same; a list of all the things you’re not doing but probably should.

Let’s start with documentation.

End User Documentation

  READ ARTICLE
1132 words ()