Create a Web Service using SOAP

This week one of the requirements for our client was to have a application communicate with an external web service running on PHP to generate a barcode sequence. I’ll teach how I was able to setup the web service using NuSOAP and a document/literal as rcp/encoded is not supported by My goal was to make the task easier on php side so from it would make a request by passing a string delimited by an asterisk and pipe. We process the string and return it back as url for the barcode image. I wont be covering barcode creation though in this tutorial but only the web service and sample client.
Read the rest of this entry »

How to Setup PHP, MySQL and phpMyAdmin on Mac OS X Snow Leopard

My previous working setup was on WAMP( Windows, Apache, MySQL and PHP). On Windows I used a bundled app WampServer that did the job, just install the executable and your all set.

On Mac it kinda needs a bit of work but basically you have to configure PHP, download-install MySQL and phpMyAdmin.
Read the rest of this entry »

PHP Certified Developers

I’ve been preparing for the past few months to take the Zend certification for PHP. However I’ve been busy as well with client projects but I plan to take it this year. Here is an interesting chart on the growth of PHP Certified Developers through the years. The growth of PHP developers have been phenomenal due to developing applications on open source environment LAMP(Linux, Apache, MySQL and PHP) has always been cheaper alternative, but with the numbers of PHP developers growing there has not been a significant growth for those getting themselves PHP certified.

Here is a slide chart courtesy from a research made by Prof. Mauricio Garcia F. Nascimento from Sao Paulo


With the U.S. leading with 1,047 PHP Certified Developers based on 2009.

And from 2004-2008 only 15 are PHP Certified from the Philippines. I want to belong in that company soon this year. So back to studying again.

All in One Package

I didn’t like using All in One Package during the my early years of learning how to install Apache, PHP and MySQL in my Windows box – there were programs like PHPTriad and similar which offers these three in one convenient installation without getting your hands dirty so to speak on the configuration. From my experience you should start with the manual installation to know the ins and out. That was what I was doing for the years, when a new version comes out I apply the upgrade to my system.

Earlier this month I got this client who uses WAMP 2.0 setup for the system we were developing.  Somehow I wasted several hours trying to make it run on my system. Was getting close but somehow if some changes were done to the system codes I feel it would break again. So I decided to try using WAMP 2.0 and it turns out its not that bad afterall. It has a UI for disabling/enabling extensions and modules, you can still go into the php.ini, my.ini, httpd.conf if you decide to edit manually from a shortcut all in one convenient place in your systray.


It made my work faster, overall if you are using the manual way and move to an all in one package like WAMP 2.0 you would benefit both time and organization. I’m now a believer.

How to enable GD Library

My first basic PHP tutorial. Pretty simple tutorial on enabling the GD support extension. PHP 4.3.x and higher by default has GD support included but may not be enabled. First thing to do is to check with phpinfo(), if you don’t see GD support, then we need to enable it.

Read the rest of this entry »