Web浏览器不处理PHP code作为PHP code [英] web browser not processing PHP code as PHP code

查看:128
本文介绍了Web浏览器不处理PHP code作为PHP code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装在我的电脑的Joomla,但最近一直在写未涉及到的Joomla管理网站的PHP文件。出于某种原因,当我尝试使用XAMPP来打开Web浏览器的PHP文件(注:也的Joomla是一个使用XAMPP),浏览器不会处理codeW /在标签作为PHP code。

I have Joomla installed in my computer, but recently have been writing php files that aren't related to the Joomla-managed site. For some reason, when I try to open those php files in the web browser using xampp (note: Joomla also is using xampp), the browser doesn't process the code w/in the tags as php code.

例如,在网络浏览器中打开一个基本的页面(页面标题为测试,除了在机身的标签没有内容)和去源$ C ​​$ C后,以下是源显示出来code:

For example, after opening a basic page (a page with title "test", no content except in the body tags) in the web browser and going to the source code, the following is shows up in the source code:

<body>
<?php echo "hello"; ?>

</body>

而不是HTML转换。 (即只是你好)

instead of the HTML conversion. (i.e. just "hello")

有没有人有什么是怎么回事的想法?

Does anyone have an idea about what's going on here?

感谢。

推荐答案

这可能是因为PHP模块没有在Apache加载。确保它已启用

It's probably because PHP module isn't loaded in your apache. Be sure it is enabled

这篇关于Web浏览器不处理PHP code作为PHP code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆