How can proper file paths be specified when including files in PHP?

When including files in PHP, it is important to specify the file paths correctly to ensure that the files are included successfully. One way to do this is by using absolute file paths, which provide the full path to the file starting from the root directory. This helps avoid any confusion or errors related to relative paths.

// Using absolute file path to include a file
include '/path/to/file.php';