Database Reference
In-Depth Information
Erlang
Java
JavaScript
Node.js
Perl
PHP
Python
Ruby
Scala
In this section, you will learn how to implement MongoDB support for two of the more popular programming
languages in use today: PHP and Python.
There are many community-driven MongoDB drivers available. A long list can be found on the MongoDB website,
www.mongodb.org .
Tip
Installing the PHP Driver
PHP is one of the most popular programming languages in existence today. This language is specifically aimed at
web development, and it can be incorporated into HTML easily. This fact makes the language the perfect candidate
for designing a web application, such as a blog, a guestbook, or even a business-card database. The next few sections
cover your options for installing and using the MongoDB PHP driver.
Getting MongoDB for PHP
Like MongoDB, PHP is a cross-platform development tool, and the steps required to set up MongoDB in PHP vary
depending on the intended platform. Previously, this chapter showed you how to install MongoDB on both Ubuntu
and Windows; we'll adopt the same approach here, demonstrating how to install the driver for PHP on both Ubuntu
and Windows.
Begin by downloading the PHP driver for your operating system. Do this by firing up your browser and navigating
to www.mongodb.org . At the time of writing, the website includes a separate menu option called Drivers. Click this
option to bring up a list of currently available language drivers (see Figure 2-2 ).
 
 
Search WWH ::




Custom Search