Windows下IIS+PHP 5.2的安装与配置

2019-10-16 20:19:05王冬梅

其余不用修改,确定后,重新启动默认网站;
步骤六:在c:inetpubwwwroot下新建一个文件hello.php。输入内容:
<html>
  <head>
    <title>World</title>
  </head>

  <body>
    <?php echo "Hello world" ?>
  </body>
</html>
保存后,打开浏览器,输入地址:http://localhost/hello.php。如果网页中显示Hello world则说明安装正确。我们也可以在网页中通过查看hello.php的源代码,如果源代码中没有php代码,也说明安装是正确的。