0

I built a local server with WAMP and moved the data from the web server.

However, the PHP code mixed in the middle of the HTML is turning into an HTML comment by itself.

<?php
    code.. // this block works just fine.
?>
<!DOCTYPE html>
...
<body>
<? include 'a/file/navbar.php'; ?> <-- it turns below.
<!--? include 'a/file/navbar.php'; ?--!>

It works well on the web server, so it is doubtful whether there is any difference in the PHP settings between the environment of the web server and the local server.

GatesPlan
  • 465
  • 1
  • 4
  • 17

0 Answers0