Are both the HTML and PHP scripts located in the same directory?

To ensure that both the HTML and PHP scripts are located in the same directory, you can use the PHP `include` or `require` function to include the HTML file within the PHP script. This way, both files can be stored in the same directory and accessed together seamlessly.

<?php
// Include the HTML file in the PHP script
include 'filename.html';

// Your PHP code here
?>