My script below is only displaying the text "Server Timestamp" to the web server, the date and nmap.html contents are not displayed:
<?php
echo "Server Timestamp: ";
echo date("h:i:sa");
echo "<pre>";
include("nmap.html");
echo "</pre>";
?>
- The nmap.html file is populated with data and is in the same directory as the php script file (/var/www/html)
- I have run this script through PHPcodechecker.com and received back "No issues found"
- When I run the exact same script and server on an aws ubuntu ec2 instance everything works as desired.
- sudo chmod 777 /var/www/html *
Any help would be much appreciated! Thanks!your text