Setup WAMP and the Zend Framework for use with Flash and Flex
There are a few tutorials out there on the net about using Zend with Flash/Flex but most seem to be overly complicated and many don’t work even after following the instructions. (I am hoping that mine will.
) The next few articles cover a VERY simple implementation that you can build on for use with future projects and I hope it can save people time when it comes to beginning to explore this new method. This post will deal with setting up your environment to be able to use Zend with Flash/Flex.
Code and instructions after the jump.
- The first thing you need to do is (if you don’t have one already) download and install a local development environment for PHP. (This tutorial is based on WAMP).
- The instructions for setting up WAMP are pretty self explanatory at their site so I wont go into detail here. At the time of this article I am using Wamp Server 2, PHP 5.3.0, MySQL 5.1.36, and Apache 2.2.11.
- The next step is to download and install the Zend Framework.
- Unzip the files to a directory in your WAMP environment. What I did is (under my wamp folder), I created a ‘frameworks’ folder, then a ‘Zend196′ folder and placed the unzipped Zend files there.
C:\wamp\frameworks\Zend196\library\Zend
- The next thing you need to do is modify your php.ini file so that it includes the Zend framework files. To find your php.ini file, start up WAMP, left click on the icon and select “PHP > php.ini”. Once the file is open, search for ‘include_path’ in the file and add this line:
include_path = ".;C:\wamp\frameworks\Zend196\library"
That’s it, you should be all set for using Zend with WAMP. Read the next article for how to get data using the Zend Framework with Flex.

Hi guy!
i read your title and i have a question!
why we have to do step 6?
i install zend framework using flash builder, it made no change in php.ini, and only 2 file add to flex project to work with flex are:
* amf_config.ini
* gateway.php
an other question is:
When we install zend frame work using flash builder, anything else are changed except what i said above!
Your title is good! many thanks!
vongts
If you install Zend Framework with FlashBuilder, you are right, you dont need step 6.
If you install WAMP and then let FlashBuilder setup Zend for you, you are good to go.
Hello,
“i install zend framework using flash builder, it made no change in php.ini, and only 2 file add to flex project to work with flex are:
* amf_config.ini
* gateway.php”
i need help to deploy my application on the web.
on my local server everythings works but i can’t deploy on a web server.
i need to do step 6 on the web server ?
sorry for my english i’m french
Things have changed a bit since Flash Builder 4 installs zend for you automatically. You may not have ZendAMF installed properly on your webserver. Can you access gateway.php on your web server and does it give you the “Zend Framework is installed…” message?