I am completely lost as to why this is happening. I am on a server x10hosting. I have a PHP file named "phpinfo.php". Inside this file it says
<?php phpinfo(); ?>
It doesn't say <? phpinfo(); ?>
For all I can tell it should be perfectly fine. If I try other PHP code they work.
For example
<?php
echo '<div>hello World</div';
?>
works perfectly. What could possibly be the problem?