Skip to main content

Posts

Showing posts from December, 2013

MongoDB: Getting Started With CRUD Operations

MongoDB is a No-SQL open source database system that stores information in documents. MongoDB was created with excellent performance and accessibility in mind. A document is a collection of fields and value pair combinations that are stored in BSON (binary representation of JSON records), which is the native data type in most languages. MongoDB uses collections to hold groups of documents. Now let’s see the basic operations that can be handled in MongoDB.           Create           Read           Update          Delete collectively called the "CRUD operation" Create Operation MongoDB performs atomic creation operations on single documents. It adds a new document to the selected collection. db .{ collection_name }. insert ({ field => value , field => value , field => value , }); The value could be a simple datatype or something more complex (document or array). The Crea

How To Watermark A Photo Using PHP

Hello Friends, This blog post will help you to create a watermark image using PHP. But first let’s get introduce yourself with watermarking. What is Watermark? Watermark is a marker which is embedded inside image (other media). It is use to identify the ownership. Why we need Watermarking? Watermarking helps to maintain integrity   and avoid unauthorized use for images (other media source also). For example let’s suppose you are have image hosting website and you provide unique and beautiful images to user. If you want only authorize user should download your images then you need to provide image preview with watermarking and original image to authorized user only so that unauthorized user cannot misuse it. Now let look at some coding stuff. First example shows watermarking images with text, normally we use copyright text. And second example show watermarking with watermark image. Watermarking using text // set water mark text $watermark = 'wate

Subscribe for latest tutorial updates

* indicates required