2013-11-12 18:59
浏览 181


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问答提供 功能建议


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

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

 $ test =“hello  world 
>        我在Chrome中加载此位置: http:// localhost:1234 /  testing.php  
 $ test =“ 你好世界“; 
 echo $ test; 


编辑: 感谢,我是个白痴,并没有用

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

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doulun1939 2013-11-12 19:01

    Try to use <?php tag instead of <?, this is often disabled in standard php installations.

    BTW, to activate short tags, the property is


    in your php.ini.

    解决 无用
    打赏 举报

相关推荐 更多相似问题