Welcome to labs.dendiz.com
This is just a reminder post, and a tutorial for people who want to install the PHP PEAR packages in wamp server.
First thing's first download GOPEAR which is a php archived version of the PEAR installer that we will use to install any packages. Save this file to your wamp installations php binary directory (which for me is C:\opt\wamp\bin\php\php5.3.13).
now open a command prompt as an administrator (right click on cmd.exe and choose "run as administrator") and type the following commands
php go-pear.phar
choose system for a system wide installation. When the program prompts you with a list, just press enter to accept the defaults.
After the download has finished a file called PEAR_ENV.reg will be created. This file contains environment variables for PEAR. Just double click it and install the registry file. Now open the file C:\opt\wamp\bin\php\php5.3.13\php.ini and add the following
include_path = ".;C:\opt\wamp\bin\php\php5.3.13"
Don't forget to replace the path with your own installation directory. Add the same line to the file C:\opt\wamp\bin\apache\apache2.2.22\bin\php.ini and restart apache. Now you can use the file pear.bat in C:\opt\wamp\bin\php\php5.3.13 to install any packages. E.g
pear.bat install net_smtp
That's all there is to it really...
View more poststhis is me
I am a day time software engineer, night time code hacker working on various web applications at the same time. An official CV is available for those that are interested. This is the place that I document/explain some of my hobby projects and research. It's mainly for reference purposes. I also use this space to keep track of my music projects. I'm currently working on WebMOO 2 which is a space themed 4X turn based strategy game for the web browser using SVG graphics and Ajax. The accompanying research is documented in Design and development of a web based 4X game.
You can reach me at deniz.dizman[@]gmail.com or on Google+. I don't use twitter anymore since the most talked about topic on twitter is justin bieber.