dongzhimeng2464
2013-11-12 18:59
浏览 181
已采纳

XAMPP PHP无法运行

I have just installed XAMPP again, I was using IIS but I have now disabled that.

For some reason disabling it didn't seem to work, as the ports still clashed, so instead I have changed the port for Apache to "1234". As you can see from the control panel below XAMPP seems to be running just fine, the index page shows up fine at least.

XAMPP Control Panel

I made a quick test page and placed it in my install directory (C:\xampp\htdocs\testing.php)

<?
    $test = "hello world";
    echo $test;
?>

I then load this location in Chrome: http://localhost:1234/testing.php But for some reason the page is blank, when I view the pages source I see this:

<?
    $test = "hello world";
    echo $test;
?>

Any ideas?

Edit: Fixed thanks, I was an idiot and didn't open it with

Instead of wasting this thread for such a stupid mistake here is another question. Is there a version of Chrome or Firefox I can use to run my website but lock it in full screen and require a password to get out of it?

图片转代码服务由CSDN问答提供 功能建议

我刚刚再次安装了XAMPP,我使用的是IIS,但我现在禁用了它。 </ p>

由于某种原因,禁用它似乎不起作用,因为端口仍然发生冲突,所以我将Apache的端口更改为“1234”。 正如您从控制面板中看到的,XAMPP似乎运行得很好,索引页面至少显示正常。 </ p>

</ p>

我做了一个快速测试页面并将其放在我的安装目录中(C:\ xampp \ htdocs \ testing.php)</ p>

 &lt;?
 $ test =“hello  world 
; 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 <
> </> </> </ </> </> </> </> </> </ p>我在Chrome中加载此位置: http:// localhost:1234 /  testing.php </ code> 
但由于某种原因,页面为空白,当我查看页面源代码时,我看到:</ p> 
 
 
 &lt;?
 $ test =“ 你好世界“; 
 echo $ test; 
?&gt; 
 </ code> </ pre> 
 
 

任何想法? </ p>

编辑:</ strong> 感谢,我是个白痴,并没有用 </ p>

打开它而不是浪费这个 这样一个愚蠢的错误的线程是另一个问题。 是否有我可以用来运行我的网站的Chrome或Firefox版本,但是全屏锁定并需要密码才能摆脱它? </ p> </ div>

1条回答 默认 最新

相关推荐 更多相似问题