Zend PHP 5.5 certification studying

I somewhat recently acquired my Zend PHP 5.5 Certification (YAY!!) , and want to share my experience with studying and the test itself. First off, some thoughts on the test. I’m not the best test taker in the world, so to say I was nervous about this one is an understatement. When I entered the room, what followed was one step away from a strip search. I was asked if I had a phone, or anything else in my pockets to I guess help me cheat on the test. If my memory serves me correct, I proceeded to hand over my keys and phone to the friendly lady administering the test. This did not help out my nerves one bit.

The test itself was administered on one of their laptops. There are 70 questions, and you are given 90 minutes to complete them all. Most questions are multiple choice, and some are free text. The free text questions aren’t as scary as they sound. They typically just ask for a small bit of PHP that you’re asked to write out.

To study for the test, I relied heavily on the ZCE study guide. It’s basically an outline of what to study on php.net. I hit every bullet point, and looked on php.net for everything. During the process, I also had a folder of php scripts I wrote to make sure I understood what a function, concept, etc. is. It’s one thing to read it, but completely different to use it.

After taking my notes and writing PHP, I downloaded Lorna Jane’s flashcards. They were extremely helpful to pound the topics I studied down my brain. More importantly they helped me to understand what I did and did not know. Check out her blog post while you’re there. She has some great tips on studying for the exam. I didn’t purchase the sample question pack, but my guess is it’s worth the money.

My recommendation with the test is to schedule the exam as soon as you feel at least somewhat comfortable with the material. I did that, and it was nice to have a deadline to help pressure me into studying. Before I did that, I kind of procrastinated the studying, because there is always something more exciting to do. Don’t be afraid to fail, because even if you don’t pass the first time, you will without a doubt get to better understand the core of PHP throughout your studying. Good luck!

Overloading Zend_Soap_Client _doRequest()

I wrote a soap client a while ago using Zend Framework 1 that was consuming data, and needed to log each request for debugging purposes. Thought I’d share a couple of things that I learned.

I’m overloading the public function _doRequest() so that I can do the extra processing needed to do my logging. You’ll first notice func_get_args(). I’m using this for my own convenience. I don’t have to stay current with any new arguments that may come.

The other important bit is

This simply is calling the original parent _doRequest() with the $argList we obtained earlier.

Order by in Zend Framework

Came across a nice “gotcha” using Zend _Db in Zend Framework 1 if you’re being sloppy like I was. When you’re ordering by multiple columns, always make sure to use an array.

Bad:

Correct:

If you take a look at the order function in Zend_Db_Select, it takes a mixed parameter (string or array) and operates on that. If you’re not seeing PHP warnings, you won’t notice that the parameters ‘col2’ and ‘col3’ are being ignored.

Zend Form presentation with ZF1

Well it’s been nearly a year since I’ve done the presentation, so what better time than now to show it off? I did this presentation on Zend Form using Zend Framework 1 at mkepug.

Download my slides: Zend_Form

Also, awesome new thing I learned! If you own a Mac, and want to present with it. ALWAYS bring your display dongle.

2011 Goals

I usually set goals for myself at the beginning of the year, but they get lost in my brain or whatever non-official place I decide to put them in. I think by actually writing these down and making them public there is a much higher chance of me actually accomplishing them. Read more…

Quick tip: Taking care of bookmarks you’d like to read later

I have been trying to come up with a tool to help me keep track of web pages that I would like to read at a later time. For instance, in my previous google reader post, I mentioned read it later, a firefox extension / iPhone app that allows you to save bookmarks for later reading. I have been somewhat satisfied with most, but I think I finally came up with a solution that works beautifully using delicious, google reader, and readability. Read more…