Softaculous


Topic : using <?php inline in an HTML document


Posted By: RMan on September 6, 2019, 7:20 am
In  my HTML document I have the following:
<?php
    echo "Hello Word";
?>

I executed my code in  localhost/test.html    But the browser displays nothing.
I viewed source of the display and found that the browser had commented out the php code by doing this:


<!--?php
  echo "Hello world";
?-->


How do I get the php to execute ?

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.