无法在浏览器上使用php语言打印“hello world”[关闭]

I'm wondering why I cannot display the simple "hello world" using php language.

This is how my code looks like:

<?
 echo "Hello world";
?>

and this is how the output come out in the browser, nothing display:

enter image description here

You need to make sure following things for executing php file.

  • Php tag should be properly open and close <?php ... ?>
  • You xampp server is properly running.
  • You are accessing file by putting correct path.