<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>https://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>https://jackxiang.com/post//</link>
<title><![CDATA[[虚拟主机]PHP Parse Error: syntax error, unexpected $end 的解决方法]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Php/Js/Shell/Go]]></category>
<pubDate>Tue, 22 Apr 2014 14:30:39 +0000</pubDate> 
<guid>https://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：在虚拟主机域名里安装dokuwiki，出现：Parse error: syntax error, unexpected $end, expecting &#039;,&#039; or &#039;;&#039; in /home/jackxiang/domains/jackxiang.com/public_html/wiki/inc/html.php on line 1082&nbsp;&nbsp;，但是自己的测试机用的apache里没有这个问题，Nginx下也没有这个问题，查了下，原来是虚拟主机没有打开：short_open_tag：short_open_tag&nbsp;&nbsp;On&nbsp;&nbsp;On 。<br/>PHP报错：Parse error: syntax error, unexpected $end, expecting T_FUNCTION in...<br/>The error may caused by a missing curly bracket in PHP script coding. Beside, it may also caused by error in PHP coding in class definition, as in PHP, a class definition cannot be broke up and distributed into multiple files, or into multiple PHP blocks, unless the break is within a method declaration.<br/><br/> <br/><br/>首先要检查是不是缺少了PHP脚本的结束标记， &quot;?&gt;&quot; 或者缺少了 &quot;；&quot;或者是“&#125;”；还有一个原因是一个PHP类的代码不能在多个文件或者多个PHP块。<br/>原来Parse error 提示一般是 语法错误,使用了开放的标签，语句没有结束 也就是编程基本的一些错, 比如没注意 语句结束加 &quot;;&quot; 或者 if()&#123;...&#125; 后面忘了&quot;&#125;&quot;&nbsp;&nbsp;；〈？php...？〉忘了“？〉”。仔细检查代码，果然是一处漏掉了“&#125;”，修改程序正常运行.<br/>But more commonly, the error is often caused by the use of Short Open tags in PHP,<br/>To use short open tags, it must be enabled in PHP.INI. Search for short_open_tag in PHP.INI, and change the value to On. The line should look line:<br/><br/>short_open_tag = On<br/><br/> <br/>如果没有错，则：<br/>其实更多的也是最主要的是因为使用了&lt;? ?&gt;的简写标签，这就需要在PHP.ini中开启短标签，设置方法是打开php.ini，找到short_open_tag = Off，修改为short_open_tag = On。<br/>short_open_tag&nbsp;&nbsp;On&nbsp;&nbsp;On<br/>来自：http://hi.baidu.com/luoziding/item/e34dc12d25c0ba9fb6326369
]]>
</description>
</item><item>
<link>https://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [虚拟主机]PHP Parse Error: syntax error, unexpected $end 的解决方法]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>