I am getting very frustrated with trying to track down the source of my problems with the code below. I believe it is something to do with php files not being run. (Note that all files are in the same directory, with sudo access to each other. It is currently displaying a white screen on the following code. All other code sections that are not relevant have not been shown here) and due to me just starting to learn PHP, I am confused as to where this issue is originating. index.html:
<html> <head> <link rel="stylesheet" href="styles.css" type="text/css" media="screen"> <title> Test Server - Rasp 1</title> </head> <body> <?php include('header.php');?> <div class="body_hold"> <div class="row"> <div class = "column leftm"> <h2> Left </h2> </div> <div class = "column middlem" style="height: 100%;"> <h2> Welcome to... </h2> <h1> Tegarn Empire Home</h1> <p> This is a test paragraph!!! <br> <br> <br></p> </div> <div class = "column rightm"> <h2> Right </h2> </div> </div> </div> <?php include('footer.php');?>
<!DOCTYPE html> <div class="header main"> <img src="media/tgelogo.png" class="logo"> <div class="header-right"> <a class="active" href="index.php">Home</a> <a href="contact-us.php"> Contact Us</a> </div> </div> <p> End of header...</p>
And here's footer:
<!DOCTYPE html> <div class="footer"> <p> This Website is property of the Tegarn Empire. </p> </div> </body> </html>
The css file for this is quite extensive... (I saved it as txt by accident, but on the server, its actually .css: https://pastebin.com/VfRYSWf0
I have tried everything I can think of. By the way, before I started using PHP and kept it all in one HTML script, it was working fine.