I am taking a Web Design and Management class and the professor basically wants us to upload a website into the university's student server. I have done websites before, but he wants us to incorporate PHP in it, for which I have virtually no experience. I wrote a page, index.html
:
<html>
<head>
<title>Welcome</title>
</head>
<?php include('../includes/header.php') ?>
<?php include('../includes/menu.php') ?>
<?php include('../includes/lsidebar.php') ?>
<?php include('../includes/rsidebar.php') ?>
<?php include('../includes/home.php') ?>
</html>
Once I uploaded this file, along with all the pertaining ones (header.php, menu.php, lsidebar.php, rsidebar.php, and home.php all with some html
content), and change proper file permissions to 755, I opened the space reserved for me in the server to find the index page was blank!
I e-mailed the professor about this, and he said I should place this line as my first line in the file:
#!/usr/local/bin/php
I ran the site again, and the page only displays the above line. How can I enable PHP commands to be recognized inside an HTML file?
Thank you very much for any assistance in advance!