在.xml文件PHP的错误?(PHP error in .xml file)

   IT问题网   2018-03-07 00:00:00

问 题

确定首先,我加入这行到我的.htaccess文件使php引擎解析php code在.xml文件:

 将addtype应用/ x的httpd-php的.php .php3 .phtml作为html的的.xml
 

在这之后,当我查看.xml文件,我得到这个php错误:

解析错误:解析错误,意想不到的t_string在/var/www/vhosts/mydomain.com/httpdocs/test.xml在线1

不过,1号线是不是甚至是php逸岸这是第1行:

  xml版本="1.0"编码="utf-8"&gt?;
 

谁能告诉我是什么问题?

感谢。

解决方案

这是因为 是php短开放标记

尝试 php的echo' xml版本="1.0"编码="utf-8"?; ?

标签:文件错误过错毛病谬误



分享:

  • 微信
  • QQ好友
  • QQ空间
  • 新浪微博


热门推荐

使用Apache的mod_rewrite解析搜索引擎友好的URL(using apache's mod_rewrite to parse SEO friendly URL's)

problem how do i convert something like me.com/profile/2 ...

搜索引擎友好的URL(Search-Engine Friendly URLs)

problem i am working on building my first search-engine f ...

斜杠之后将文字与.htaccess的变量(Turn text after slashes into variables with HTACCESS)

problem i need to pass 3 variables with a url but using s ...

从URL删除字符与htaccess的(Remove Characters from URL with htaccess)

problem hopefully someone can see what i'm do ...

重定向所有的HTML扩展到.PHP(redirect all .html extensions to .php)

problem i want to update all the pages on a website to us ...

需要转义#(哈希/磅)字符在.htaccess重写规则(need to escape # (hash/pound) character in .htaccess rewrite rule)

problem the question is fairly simple but i w ...

如何使用的.htaccess重写规则改变下划线以破折号(How do I use .htaccess RewriteRule to change underscores to dashes)

problem i'm working on a site, and its cms used to save n ...

请求实体太大PHP(Request Entity Too Large PHP)

problem in one of my cakephp site, i got this error. req ...

的.htaccess使用PHP $ _GET缩短网址(.htaccess shorten URL using php $_GET)

problem i need to be able to shorten my page from: mydom ...

Gzip已融为一体pression通过的.htaccess不工作(Gzip compression through .htaccess not working)

problem i have been creating a site and checking it's spe ...

重定向www.subdomain.example.com到subdomain.example.com(redirecting www.subdomain.example.com to subdomain.example.com)

problem i've had some users trying to access a site that ...

添加尾随斜线的.htaccess(Add Trailing Slash .htaccess)

problem i'm trying to get the following effec ...

禁用所有的CGI(PHP,PERL,...)使用的.htaccess目录(Disable all CGI (php, perl, …) for a directory using .htaccess)

problem i have a directory where users can upload files. ...

在某个目录设置为仅附件上的文件内容处理标头?(Set Content-Disposition header to attachment only on files in a certain directory)

problem i've got this this rule in my htaccess file to fo ...

阿帕奇升级到2.4后,内部URL重写不再工作(Internal URL rewrite no longer working after upgrading Apache to 2.4)

problem i need to internally rewrite the base url so that ...

使用codeigniter共享托管服务器上的困惑(Puzzled using codeigniter on shared hosting server)

problem this ones a new on me. i'm transferring a site i ...

通过用户代理或空的查询块(Block by useragent or empty referer)

problem a stranger bot (gbplugin) is codifying the urls o ...

的.htaccess中:RewriteEngine此处不允许(.htaccess: RewriteEngine not allowed here)

problem i uploaded the .htaccess to the server and receiv ...

htaccess的通配符子域(.htaccess Wildcard Subdomains)

problem i'm trying to implement a solution using .htacces ...

删除的.html和.PHP与htaccess的扩展(Remove .html and .php extensions with .htaccess)

problem how do i remove the file type from my ...