开发者

php in html, some part of code is not displaying

I would like to learn PHP and started reading this info's in the website: And I have question about this code:

Why is this line not displaying? " echo 'Neo: I am Neo, but my people call me The One开发者_如何学Go.';"

Thanks

  <html>
  <head></head>
  <body>

  Agent: So who do you think you are, anyhow?
  <br />

  <?php
  // print output
  echo 'Neo: I am Neo, but my people call me The One.';
  ?>

  </body>
  </html>


You need a webserver, and give it a .php extension. You cannot run it directly from your drive (e.g. /home/user/file.php or C:\file.php), you must run it from your server (e.g. http://localhost/file.php or http://example.com/file.php)

A webserver can be downloaded from http://www.xampp.org/


Make sure you are using a virtual webserver such as mamp or xampp, Also try print instead of echo with "

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜