I want to build a very simple web page running LOCALLY on my computer, displaying results from a Python script. I have tried using HTML and PHP but without any luck. Please bear in mind that I'm a complete newbie in web development.
Let's say I want to very simply print some text on the web page. This is what "helloworld.py" looks like:
print("hello world")
This is what helloworld.html looks like:
<html>
<body>
<?php
$message = exec('helloworld.py');
print_r($message);?>
</body>
</html>
However, when I open the HTML file in the browser I just get an empty screen. Can someone tell me how to do this?