Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying PHP and MongoDB Web Development Beginner's Guide
  • Table Of Contents Toc
PHP and MongoDB Web Development Beginner's Guide

PHP and MongoDB Web Development Beginner's Guide

4.2 (11)
close
close
PHP and MongoDB Web Development Beginner's Guide

PHP and MongoDB Web Development Beginner's Guide

4.2 (11)

Overview of this book

With the rise of Web 2.0, the need for a highly scalable database, capable of storing diverse user-generated content is increasing. MongoDB, an open-source, non-relational database has stepped up to meet this demand and is being used in some of the most popular websites in the world. MongoDB is one of the NoSQL databases which is gaining popularity for developing PHP Web 2.0 applications.PHP and MongoDB Web Development Beginner’s Guide is a fast-paced, hands-on guide to get started with web application development using PHP and MongoDB. The book follows a “Code first, explain later” approach, using practical examples in PHP to demonstrate unique features of MongoDB. It does not overwhelm you with information (or starve you of it), but gives you enough to get a solid practical grasp on the concepts.The book starts by introducing the underlying concepts of MongoDB. Each chapter contains practical examples in PHP that teache specific features of the database.The book teaches you to build a blogging application, handle user sessions and authentication, and perform aggregation with MapReduce. You will learn unique MongoDB features and solve interesting problems like real-time analytics, location-aware web apps etc. You will be guided to use MongoDB alongside MySQL to build a diverse data back-end. With its concise coverage of concepts and numerous practical examples, PHP and MongoDB Web Development Beginner’s Guide is the right choice for the PHP developer to get started with learning MongoDB.
Table of Contents (17 chapters)
close
close
PHP and MongoDB Web Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Chapter 7. Handling Large Files with GridFS

So far in this book we have dealt with data that is mostly textual. But Web 2.0 hardly contains itself within text data. Now we are using web applications to do things that we probably did not think of doing while the World Wide Web was being conceived. For example, watching blockbuster movies, listening to top charted music, uploading and sharing high-resolution pictures snapped with our digital cameras, and all using our web browsers! Where does MongoDB fit in all of this? Is it capable of handling large amounts of binary data? The answer in short, is yes. And in this chapter, we are going to learn how. Mainly we are going to tinker with GridFS, which enables MongoDB to store large files.

So we are going to learn:

  • What GridFS is

  • Advantages of using GridFS

  • How to use PHP to upload files to GridFS

  • How to serve files from GridFS

  • When not to use GridFS and why

What is GridFS?

GridFS is MongoDB's solution for storing binary data in the database. It is a...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
PHP and MongoDB Web Development Beginner's Guide
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon