I just registered EC2 and copy over my project to the EC2 server, and then I notice one weird thing: some of the variable can not be printed
It is how it happened
<?php
$username = "John";
?>
<p>Name: <?=$username?>.</p>
The result is doesn't output username
Name: .
This method doesn't work in EC2, is there any configuration setting I need to change to make it work?