by Kevin Schroeder | 12:00 am

PHP Deployment: Source Control

This is an article that is based off of a talk I did covering various deployment mechanisms. The slides can be found at Slideshare.

Options for deploying PHP applications

View more presentations from Kevin Schroeder.

The next deployment option that we’re going to look at is source control. You’re using source control, yes? There are arguments as to which is the best. Git seems to be winning that war in the open source world, but what it comes down to is that the source control you use is less important than whether or not you’re using source control.

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

PHP Deployment: rsync

This is an article that is based off of a talk I did covering various deployment mechanisms. The slides can be found at Slideshare.

Options for deploying PHP applications

View more presentations from Kevin Schroeder.

The first one that we’re going to look at is rsync. What rsync does is maintain synchronization between an individual machine and another master machine. Updates are made by checking the differences between the files on the local machine and the files on the remote server and copying the changes over. It’s relatively easy to use.

  READ ARTICLE
1139 words ()
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 ()