Archive for category PHP

PHP5 Zend Certification

Observant readers will have noticed the recent addition of the Zend Certification logo to the top of my page. This is because, somewhat predictably, I have recently passed my Zend PHP5 Certification exam and can now be found as a certified engineer on the Zend Yellow Pages. This is good news for HigherSites as it takes our total of PHP5 Zend Certified Engineers (ZCE) to 3, and I believe this makes us unique within the UK, as I see no other company on the Yellow Pages with that many certified engineers.

So what is the certification, and why might you want to obtain it?

Well, Zend is basically the leading commercial voice behind the PHP scripting language, and the only company offering an official certification for PHP developers. The vast majority of PHP developers will never obtain certification, so having it not only lends weight to one’s claim of PHP expertise, it also lends an air of exclusivity and uniqueness to those that do obtain it. Will it make you a better developer? Possibly, but not necessarily. If nothing else, working through the various available revision materials serves as an excellent aide memoire and helps re-inforce language constructs and peculiarites in the mind.

The exam focuses on general PHP, the differences between PHP4 and PHP5, object orientating programming, XML, security, streams, arrays and functions. Whilst some of the questions are really rather simple for experienced developers, there are plenty of questions to trip you up. I have been writing PHP for a decade and there was still plenty for me to learn in order to get the pass mark. As developers, we tend to focus on specific application types (i.e. content management, e-commerce etc.) and so there are many areas of the language that we probably never use. The exam tries to cover many varied aspects of the language and so will inevitably require study and revision time on the part of the developer hoping to attain certification.

One thing I have found in my 13 or so years in the IT industry, is that probably more than 90% of the people you meet don’t actually really know what they’re doing. The really talented developers and IT professionals are much thinner on the ground than you might imagine. It may come as no surprise then that, as at time of writing, only 222 professionals in the UK have gained ZCE status for PHP5.

I posted a Twitter update when I passed, but as so few people know what “ZCE” actually means, I have been fielding questions since. One pal refered to it as a “Mickey Mouse Qualification”, which frankly irritated me. For me, getting Zend Certified is the culmination of many hours of research, study and revision that has built upon 10 years of very hard work. It annoys me that whilst there are many academic and professional course for closed source platforms like .NET, there is very little available for much larger open source platforms such as PHP. This means that your average PHP developer is almost entirely self-taught, and that in my mind deserves much greater respect and shows a problem solving personality that is exactly what you want to see in a programmer. Certainly, in my experience as an employer, and despite PHP being more popular than say .NET, there are fewer decent PHP developers on the job market as there are .NET programmers. Good PHP developers are always in high demand, and achieving ZCE certainly isn’t going to hinder your chances of gainful employment!

I’m proud of my achievement and rightly so.

2 Comments

Famous websites that use PHP and/or MySQL

Ever wondered how many of the big boys are coding in PHP, or how many use MySQL?

I have found that some people have a rather warped perception that PHP is somehow amateur, or not suitable for large scale projects. Again, I have heard (often from Microsoft junkies) that MySQL somehow can’t cut it alongside SQL Server and Oracle. I don’t know where this nonsense originates from.

The simple way to answer this is to list some of the websites that use each technology (correct at time of writing)…

PHP

Facebook - yep, the world’s biggest social networking platform is written in PHP. 150 million users and counting, and in my experience, significantly faster and more stable than competing platforms written in other languages (e.g. MySpace).

Yahoo! - formerly the world’s largest search engine. Yahoo! makes use of PHP.

YouTube - the world’s biggest video sharing website uses PHP technology.

Wikipedia - the pre-eminent user contributed web encyclopaedia has PHP elements.

MySQL

Google - the world’s most used search engine relies on MySQL.

Yahoo! - the world’s second most used search engine also relies on MySQL.

YouTube - and yes, these guys also trust MySQL.

I migrated to PHP/MySQL from ASP/SQL Server and I’ve never looked back. For me PHP is faster to code, in my experience is more stable, has a much wider user support, is platform agnostic and has a very low total cost of ownership. Similarly, MySQL is the business when it comes to databasing, plus it has the backing of UNIX giants Sun. UNIX you say? Doesn’t most of the world use Windows? True for end users, but not for web servers. The vast majority of the Internet runs on UNIX and Linux servers and, whilst PHP and MySQL can run perfectly happy on Windows servers, they are designed with Linux/UNIX in mind. It’s the most popular solution by far and that makes it the perfect choice as a development platform, regardless of the size of your web project.

And just to clarify, before I get flamed by hordes of foaming-at-the-mouth Microsoft zealots, what I’m saying here is not that PHP/MySQL is necessarily better, faster, more reliable etc. than any other system (although many do believe that), but that it is clearly capable of running some of the world’s biggest websites, and therefore should be worth consideration for your project too.

9 Comments

How to run Football Manager 2009 in a window on Mac OS X

I was very frustrated to find that you cannot set Football Manager 2009 to run in a window from the in-game preferences as you could with previous versions. I’ve figured out a quick fix using Terminal (which you will find in your /Applications/Utilities folder). Type (or copy and paste) the following command into Terminal to launch Football Manager 2009 in a window:

/Applications/Sports\ Interactive/Football\ Manager\ 2009/fm.app/Contents/MacOS/fm -windowed -small_screen

There’s a more user friendly way of doing this, which I’ll explain at another time. For now, I’ve got teams to manage…

4 Comments

SORBS - The Internet police no-one appointed

Any web developer / ISP running their own web servers will know that, occasionally, you get some spam email being sent through your server(s) without your permission. This can be down to a newly found, and as yet un-patched, security hole, an insecure mail form script that one of your clients has kindly uploaded, or a virus on the computer of one of your SMTP users. Frankly, it can be caused by all sorts of things, and even with the best will in the world, it’s very difficult to stop it happening in an environment where users have access to your server in any shape or form.

In between the above happening and you becoming aware of the problem, complaints about your IP address may have been submitted to a black list service. There are lots of these services around and they feed spam filtration software and systems. Generally, if you get blacklisted, you then just visit the website of the service in question, enter your IP address and some basic details, and it will be removed from the list - usually immediately.

This system works. Some might wonder why the spammers themselves don’t just go in and delist themselves, and indeed there is nothing to stop them doing this. However, spammers will always continue to send spam and so will become immediately blacklisted again. Hence, it’s a complete waste of their time to do this, particularly when the vast majority of email users don’t have any active spam filtration. Remember also that most spammers send their mail through hijacked servers and computers, and therefore it’s not their own IP addresses being blacklisted anyway.

Today, I realised this had happened on one of our servers and that it had been blacklisted with SORBS. I followed the hugely convoluted process on their website of trying to get the IP address de-listed and finally got presented with a message telling me that SORBS would not de-list my IP unless I paid a ‘fine’ of $50 to a charity of their choice.

What?! Who the hell do they think they are???

This is little more than kidnap and ransom. SORBS have absolutely no right whatsoever to charge any kind of fine, inverted commas or otherwise. They certainly do not have the right to coerce people into donating money to a charity that they may not themselves support.

Will I pay the $50? Hell no! I’ll just change the IP address - they are free after all.

Will I ever use a spam filtration system that queries the SORBS database? Of course not, because a system that works in this way is never going to be worth a damn. In fact, most high-end filtration solutions do not query SORBS.

Spam is a scourge. Having some self-appointed police force punishing the ISPs is not the answer at all. SORBS use the analogy of a police speed camera on their website. This is a good analogy, because speed cameras rarely catch the real criminals either. No, this is just another bunch of self-absorbed, labotomised morons trying to make some kind of mis-guided statement without taking any time to actually think things through properly.

I strongly urge all ISPs and users to boycott this ludicrous bunch of jokers.

2 Comments

Secure Online Random Password Generator

Regular readers of my blog may remember, or have used, my secure random password generator class. For those who aren’t PHP proficient, or just can’t be bothered to create the pages necessary, I’ve implemented it into a new website: www.random-password.net. I hope it proves useful.

The benefit of my class is that it generates passwords based upon a pattern, and you can make it generate upto 99 random passwords based on your pattern in a single click. The random-password.net website also stores a convenient cookie, so that it will remember your pattern each time you visit.

Let me have any comments or suggestions please, and I love to hear from you if my work has helped you in any way.

3 Comments