Jun
29
2010

Zend Server Cluster Manager

Tags: ,

On June 23rd Zend announced the release of Zend Server Cluster Manager. Which means what, exactly.

PHP is designed using a shared-nothing architecture. What that means is that nothing is shared. What that really means is that each individual PHP request is isolated from every other PHP request. That’s great! It makes for a very stable, very easy to use architecture. But what happens when you go beyond one server?

5
Jun
25
2010

Google Analytics feed handling

So there I was, looking at some other websites out there (because I think my site design sucks. Thanks, me). One of the things that virtually no blogs do is promote specific content. In other words, highlight content that is most popular over a certain time frame. So I was thinking to myself, how would I do that? One option would be to have a database table that could record each click. That, however, is boring and requires changes to my DB schema (evil!). What I want to do is take my most popular pages of the last week and highlight them at the top of the web site.

0
Jun
24
2010

PHP Deployment: RPM/yum, whatever your OS uses

Tags: , ,

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.

Our final examination is going to be my prefered method, which, ironically, I don’t actually use… yet. That is, the operating system specific method. Because I’m using CentoOS that means using RPM and yum for me. I don’t always deploy my applications, but when I do, I prefer yum. OK, that sounded funnier in my head.

3
Jun
23
2010

PHP Deployment: PEAR

Tags: ,

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.

Before I get into this one I would like to note that while I have presented several options (and will presenting one more after this) that none of these are given with the assumption that they are the only way or even the best way to do things. Each of these options is provided as a starting point. What that means is that you need to try it yourself and modify what I present here to fit what you need.

0
Jun
23
2010

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.

2
Jun
22
2010

PHP Deployment: rsync

Tags: ,

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.

0
Jun
17
2010

PHP Deployment: Application considerations and process

Tags:

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.

2
Jun
08
2010

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

Tags: ,

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.

3
Jun
02
2010

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.

0

Switch to our mobile site