XAMPP服务器不显示echo

时间:2014-04-02 09:50:55

标签: php xampp wamp

我是XAMPP的新手,因为我以前使用过WAMP而且我有点卡住了。

我已安装XAMPP,我同时运行Apache和SQL(当我启动XAMPP时,由Apache和MySQL旁边的绿框确认)。在Apache httpd.conf中,我不得不将端口号从80更改为8080,因为IIS使用了端口80。我再次确认所有这一切都是通过访问localhost:8080。在这里,我看到以下欢迎屏幕。 enter image description here

当我点击英文版时,我会看到以下屏幕。 enter image description here

我WAMP我习惯看到以下屏幕。 enter image description here

我是否应该在XAMPP中看到与我在WAMP中看到的相同的根导航?

我问的原因是当我尝试运行以下php测试时,我没有看到第一个回声测试。

<html>
<head>
<title>PHP Test</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<p>Hello World!</p>                       // This is working 
<?php echo "Hello world!"; ?>             // This is NOT working
<?php echo '<p>Hello World now </p>'; ?>  // This is working 
</body>
</html>

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:1)

您可以

使用您的项目
c:/xampp/htdocs/
->projectone/index.php
->projecttwo/home.php

您可以通过

访问它
localhost/projectone
localhost/projecttwo/home.php

以下是Tutorialspoint Tutorial to use xampp easily.

您无需任何权限即可运行项目文件夹。

相关问题