From the course: PHP Techniques: Working with Files and Directories

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Filesystem basics

Filesystem basics - PHP Tutorial

From the course: PHP Techniques: Working with Files and Directories

Start my 1-month free trial

Filesystem basics

- [Instructor] We'll begin learning to work with files and directories in PHP, by learning about some File system basics. The File system is the part of any computer that keeps files and directories organized. Usually, the File system is going to be on some type of storage media, like a hard drive, and every file or directory on the hard drive has a file path. The file path describes how to find the file. There are two types of file paths, absolute and relative. An absolute path would start at the beginning of the hard drive and list all of the directories that we'd have to go through to locate the file or directory that we are interested in. A relative path is similar, but instead of starting at the root of the hard drive, it's a path relative to another file. All files and directories also have file ownership and permissions, which control access to those files. If you have trouble reading or writing a file, it could be…

Contents