diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)


Guide to Install PHP PEAR and phploc on Windows

PEAR (PHP Extension and Application Repository) is a framework and distribution system for reusable PHP components. In includes many useful tools and components that can be easily downloaded and installed by using PEAR package manager. An example PEAR package used in this post is phploc, which is a tool for measuring the size of PHP projects.

Start by installing PHP on Windows by using one of the following methods:

  • Install PHP for by using Web PI 3.0. With that you can install PHP for either IIS or WebMatrix or both;
  • Download and unpack the PHP zip package and then register it with IIS by using PHP Manager.

Now open an elevated command prompt, go to directory where PHP was installed:

  • %ProgramFiles%\PHP\v53\ — when PHP is installed for IIS
  • %ProgramFiles%\IIS Express\PHP\v53 — when PHP is installed for IIS Express

While in that directory run the go-pear.bat command. If you intend on having multiple versions of PHP installed on the same machine then make sure to answer “local” on the first question asked by go-pear.bat: C:\Program Files\PHP\v5.3>go-pear.bat

.Bat File content:


Share This Story, Choose Your Platform!

Get Latest News

Subscribe to Digital News Hub

Get our daily newsletter about the latest news in the industry.
First Name
Last Name
Email address
Secure and Spam free...