PHP

Hypertext Pre Processor

A PHP program to delete documents from MongoDB collection

December 28, 2012
By
Deleting MongoDB documents from a PHP Program

In this article, we will create a php program to delete documents from MongoDB collection. The development environment for this application include Apache 2.2.22, PHP 5.3.10 and MongoDB 2.2.2. 1. Documents available in “students” collection before executing php program for deleting documents 2. Create a file namely “students_delete.php” in the document root of the...

Read more »

A PHP program to update collection data in MongoDB database with upsert option

December 28, 2012
By
Updating documents using PHP program

In our previous article titled “A PHP program to insert individual and batch data into MongoDB database“, we have developed a php application to insert data into MongoDB collection. In this article, we will create a php program which updates existing data with new data according to the criteria set. If no data is...

Read more »

A PHP program to fetch data from a collection in MongoDB database using cursors

December 27, 2012
By
A php program to fetch data from MongoDB database

In our previous article titled “A PHP program to insert individual and batch data into MongoDB database“, we have created a php program to insert data into MongoDB database. In this article, we will create a php program to fetch the data and display it in a web browser. The development environment for this...

Read more »

A PHP program to insert individual and batch data into MongoDB database

December 26, 2012
By
Program to insert data into MongoDB database

In this article, we will create a PHP application that inserts documents in to a collection individually and as a batch in a MongoDB database. This article is an extension to the article titled “Connecting and authenticating to MongoDB database from PHP using MongoClient“. Using this program, we are inserting data into “students” collection...

Read more »

Connecting and authenticating to MongoDB database from PHP using MongoClient

December 23, 2012
By
Connecting to MongoDB from PHP using MongoClient API class

In our previous article titled “Installing and configuring php mongo driver with Apache in Ubuntu 12.04 LTS“, we have seen, how to install and configure php-mongo driver to connect to a MongoDB database from php. In this article, we will create a PHP program to connect to a MongoDB database by authenticating user name...

Read more »

Setting up php with Apache2 in Ubuntu 12.04 LTS in command mode

December 22, 2012
By
Setting up php in Ubuntu 12.04 LTS

In the article titled “Setting up a name based Virtual Host in Apache Web Server“, we have installed Apache2 web server in Ubuntu 12.04. In this article, we will install php5 in Ubuntu 12.04 LTS, so that Apache2 web server can serve php pages. 1. Install php5 in Ubuntu 12.04 2. Testing the installation...

Read more »

Be friend at g+

Subscribe for Lastest Updates

FBFPowered by ®Google Feedburner