dongmi4734
dongmi4734
2017-07-09 12:58

无法在浏览器上使用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

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • doukuibi9631 doukuibi9631 4年前

    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.
    点赞 评论 复制链接分享