What are the advantages of including files using the file system rather than the web server in PHP?

When including files in PHP, it is generally more secure to use the file system path rather than the web server path. This helps prevent direct access to sensitive files by users. Additionally, using the file system path can also improve performance as it bypasses the web server's processing.

// Including a file using the file system path
include '/path/to/file.php';