简体   繁体   English

使用时 <?php to include a php script am getting error like “<” missing '> &#39;html文件中标记的结尾

[英]when using <?php to include a php script am getting error like “<” missing '>' end of tag in a html file

i am new to aptana studio, i am getting an error like "<" missing '>' end of tag in a html file when i am trying add a php script. 我是aptana工作室的新手,在尝试添加php脚本时,在html文件中收到类似“ <”缺少'>'标记结尾的错误。 Please any one can help me to solving this. 请任何人可以帮助我解决这个问题。

Here is the screen-shot 这是屏幕截图

在此处输入图片说明

You are trying to use a php code in a .html file. 您正在尝试在.html文件中使用php代码。

Change your file extension to .php this should work. 将您的文件扩展名更改为.php,这应该可以工作。

将文件扩展名更改为.php,因为建议使用我的名字jeff,或者将您的网络服务器也配置为也处理.html文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM