How can the Document-Root in PHP configuration affect file inclusion and directory access?

The Document-Root in PHP configuration specifies the root directory for the web server. This setting affects file inclusion and directory access because PHP will look for files relative to this root directory. To ensure proper file inclusion and directory access, it is important to set the Document-Root correctly in the PHP configuration file.

<?php
// Set the Document-Root in PHP configuration
$_SERVER['DOCUMENT_ROOT'] = '/path/to/your/document/root';
?>