Need help installing PHP extensions for OS X 10.6 (Snow Leopard) using MAMP and the included PECL binary? Well, you have come to the right place. If you have tried this on its own, you will notice that none of the extensions PECL builds will work with MAMP. This is because MAMP is compiled as a 32-bit binary whereas PECL tries to build 64-bit PHP extensions.

[Update Feb. 1, 2011]

A much easier way to install PECL packages:

CFLAGS="-arch i386" ./pecl install

To get PECL working properly, make sure you have Xcode installed on you machine. Next, you will need to get a copy of MAMP’s source and prepare it using 32-bit compile flags. You can download the MAMP source from the MAMP. Running the .dmg should extract the source. After extracting the source run the following:
Continue reading

Edit: I originally started working on this article several months ago, however, as I was editing it, the Zend Framework team released a revamped reference guide that goes through much of what I discuss. Hopefully though, this still ends up being useful and informative for someone out there.

Edit #2: I don’t mean for this article to be followed verbatim, but rather, used as a guide to understanding Zend Framework’s routing process.

Now that I am using ZF for current projects at work, I have taken the opportunity to promote ZF with my colleagues. One colleague in particular, who has been using Code Igniter (CI), was somewhat perplexed by ZF’s seeming complexity, even after reading through the first few sections of the Reference Guide. In particular, he didn’t understand how ZF handled URIs as it is quite different from CI. So, I have put together the following, hopefully simple overview, explaining a bit about ZF’s routing and using it in conjunction with Zend_Config.
Continue reading

Ever try to get subversion working between multiple Macs over a home network without WEB Dav or public key authentication over ssh? Well, that was what I was trying to accomplish over this weekend and it apparently isn’t as straightforward as I thought. There seems to be an issue with subversion (SVN) and apple’s AFP protocol, something to do with not being able to obtain exclusive locks? Well, that is all I could find on the problem. So, if anyone knows how to fix this, I would like to know. However, I did find another solution on my own, that was just as useful to me as using an AFP mounted drive, but much more versatile. Introducing… MacFUSE!
Continue reading

I recently published an article trying to shed some light on the Zend_Form component, in particular, when using it with Zend_Config_Ini. In the article I presented a config I developed while trying to learn Zend_Form myself, but unfortunately realized that using generic elementDecorators comes with a price.
Continue reading

In my previous post Zend Framework, A First Look, I discussed the lacking nature of ZF’s documentation, in particular, with regards to Zend_Form. I have since then learned that this is partly due to the fact that Zend_Form is a relatively new component. However, I still wanted to make use of Zend_Form in my current project and decided to trudge through the learning curve of creating a simple custom login form in conjunction with Zend_Config; the end result being an easy to maintain, custom form and this guide. Hopefully, this guide will make it easier for anyone else looking to take advantage of this very cool feature.
Continue reading

Having used Code Igniter for some small projects at work, I recently decided to take the time to acquaint myself with the Zend Framework(ZF) so that I could build my own comparison between two of the most, in my opinion, developed and used PHP frameworks. While I love the flexibility and functionality offered by ZF, I have become very frustrated and annoyed with some of their documentation. Even though it is detailed and expansive, it is no where near complete and somewhat frustrating to use.
Continue reading

I recently found myself writing a REST web service, which, in my opinion, is the easiest way to create a web service, for a project at work. Using’s How to Create a REST protocol as my Guide, I went to work. However, when I tried to create a service to update some data, I wasn’t sure how to send my data in a POST request using PHP. After some stumbling around, I found what I was looking for on Wez Furlong’s blog which led me to PHP’s documentation on HTTP and HTTPS wrappers.

The following is a code snippet from the HTTP and HTTPS documentation that shows how to easily send data using HTTP POST:
Continue reading

  • page 1 of 1
Author's picture

Andrew Vayanis

I am a Software Engineer, Technologist, Gamer, but most importantly, I am a student of life.

Engineering Lead

California, USA