O'Reilly logo

Building a Web Application with PHP and MariaDB: A Reference Guide by Sai Srinivas Sriparasa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Working with Files and Directories

In the last chapter, we discussed the basics of building our student portal application. In this chapter, we will focus on file interactions and operations. PHP allows us to work with files that are available both locally and on a remote server. Files are commonly used to store logs and configurations of an application. They are also used to carry data from one application to another. In this chapter, we will begin by working with data imports from files and data exports to files. Later, we will look at two different types of logging mechanisms that will take us further with our interaction with files.

Data imports

In real-world applications, data may have to be consumed from multiple sources, and a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required