<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kangzj &#187; fckeditor</title>
	<atom:link href="http://kangzj.net/tag/fckeditor/feed/" rel="self" type="application/rss+xml" />
	<link>http://kangzj.net</link>
	<description>记录技术和生活~</description>
	<lastBuildDate>Mon, 16 Jan 2012 07:38:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Fckeditor上传文件自动改名-php配置(可以解决Fckeditor上传中文文件名出错的问题)</title>
		<link>http://kangzj.net/php-fckeditor-upload-file-change-name/</link>
		<comments>http://kangzj.net/php-fckeditor-upload-file-change-name/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 06:31:01 +0000</pubDate>
		<dc:creator>kangzj</dc:creator>
				<category><![CDATA[网站制作]]></category>
		<category><![CDATA[fckeditor]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[上传中文文件名图片]]></category>
		<category><![CDATA[中文文件名]]></category>
		<category><![CDATA[自动改名]]></category>

		<guid isPermaLink="false">http://kangzj.net.ru/?p=192</guid>
		<description><![CDATA[Fckeditor 2.4不支持插入中文文件名的图片，但是是可以上传的，但是，上传之后却不能浏览服务器了，会产生The server didn't send back a proper XML response的错误。怎么解决呢，其实很简单，只要将上传的文件自动改名就行了啊，中文的文件名不建议用。下面是修改Fckeditor的方法]]></description>
			<content:encoded><![CDATA[<p>Fckeditor 2.4不支持插入中文文件名的图片，但是是可以上传的，但是，上传之后却不能浏览服务器了，会产生<a href="http://kangzj.net/fckeditor-not-proper-response/">The server didn&#8217;t send back a proper XML response</a>的错误。怎么解决呢，其实很简单，只要将上传的文件自动改名就行了啊，中文的文件名不建议用。下面是修改Fckeditor的方法：<br />
<span id="more-192"></span><br />
找到FCKeditor/editor/filemanager/upload/php/upload.php文件：<br />
1. 找到:</p>
<blockquote><p>while ( true )</p>
<p>在前面添加：</p>
<p>$rFileName = time() . &#8216;.&#8217; . $sExtension; //即是用当前的时间来代替文件名</p></blockquote>
<p>2.找到：</p>
<blockquote><p>$sFilePath = $sServerDir . $sFileName ;</p>
<p>修改成：</p>
<p>$sFilePath = $sServerDir . $rFileName ;</p></blockquote>
<p>3.找到：</p>
<blockquote><p>$sFileUrl = $Config["UserFilesPath"] . strtolower($sType) . &#8216;/&#8217; . $sFileName ;</p>
<p>把其中的$sFileName改成$rFileName</p></blockquote>
<p>4.找到：</p>
<blockquote><p>$sFileUrl = $Config["UserFilesPath"] . $sFileName</p>
<p>把其中的$sFileName改成$rFileName</p></blockquote>
<p>好了，成功了，现在你的Fckeditor可以上传中文文件名的图片或者其它文件啦，下面是效果：</p>

<a href='http://kangzj.net/php-fckeditor-upload-file-change-name/fckzhcn-2/' title='fckzhcn'><img width="150" height="121" src="http://kangzj.net/wp-content/uploads/2009/06/fckzhcn1-150x121.jpg" class="attachment-thumbnail" alt="fckzhcn" title="fckzhcn" /></a>
<a href='http://kangzj.net/php-fckeditor-upload-file-change-name/xiaoguo/' title='xiaoguo'><img width="150" height="123" src="http://kangzj.net/wp-content/uploads/2009/06/xiaoguo-150x123.jpg" class="attachment-thumbnail" alt="效果" title="xiaoguo" /></a>

<p style='text-align:left'>&copy; 2009, <a href='http://kangzj.net'>kangzj</a>. 版权所有.  </p>
<hr />
<p><small>© kangzj for <a href="http://kangzj.net">Kangzj</a>, 2009. |
<a href="http://kangzj.net/php-fckeditor-upload-file-change-name/">http://kangzj.net/php-fckeditor-upload-file-change-name/</a> |
<a href="http://kangzj.net/php-fckeditor-upload-file-change-name/#comments">9 条评论</a> |
Add to
<a href="http://del.icio.us/post?url=http://kangzj.net/php-fckeditor-upload-file-change-name/&title=Fckeditor上传文件自动改名-php配置(可以解决Fckeditor上传中文文件名出错的问题)">del.icio.us</a>
<br/>
Post tags: <a href="http://kangzj.net/tag/fckeditor/" rel="tag">fckeditor</a>, <a href="http://kangzj.net/tag/php/" rel="tag">php</a>, <a href="http://kangzj.net/tag/%e4%b8%8a%e4%bc%a0%e4%b8%ad%e6%96%87%e6%96%87%e4%bb%b6%e5%90%8d%e5%9b%be%e7%89%87/" rel="tag">上传中文文件名图片</a>, <a href="http://kangzj.net/tag/%e4%b8%ad%e6%96%87%e6%96%87%e4%bb%b6%e5%90%8d/" rel="tag">中文文件名</a>, <a href="http://kangzj.net/tag/%e8%87%aa%e5%8a%a8%e6%94%b9%e5%90%8d/" rel="tag">自动改名</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://kangzj.net/php-fckeditor-upload-file-change-name/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>FCKEditor: The server didn&#8217;t send back a proper XML response解决方法</title>
		<link>http://kangzj.net/fckeditor-not-proper-response/</link>
		<comments>http://kangzj.net/fckeditor-not-proper-response/#comments</comments>
		<pubDate>Wed, 06 May 2009 06:29:43 +0000</pubDate>
		<dc:creator>kangzj</dc:creator>
				<category><![CDATA[网站制作]]></category>
		<category><![CDATA[fckeditor]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">/articles/59</guid>
		<description><![CDATA[所有配置均正确，而会有上面这样的错误。是因为不支持浏览中文文件名导致，解决方法]]></description>
			<content:encoded><![CDATA[<blockquote><p>The server didn&#8217;t send back a proper XML response. Please contact your system administrator.</p>
<p>XML request error: OK (200)</p></blockquote>
<p>所有配置均正确，而会有上面这样的错误。是因为不支持浏览中文文件名导致，解决方法：<span id="more-80"></span><br />
将FCKEditor设置的Upload目录下面的中文文件全部删掉，OK，解决了！</p>
<p>    可以让用户不要上传中文文件名的文件，或者稍微修改一下fckeditor的源文件使上传的文件自动改名就可以解决了，<a href="http://kangzj.net.ru/php-fckeditor-upload-file-change-name/">修改FCKeditor/editor/filemanager/upload/php/upload.php</a>即可，<a href="http://kangzj.net.ru/php-fckeditor-upload-file-change-name/" target="_blank">详细请看这里</a>。</p>
<p style='text-align:left'>&copy; 2009, <a href='http://kangzj.net'>kangzj</a>. 版权所有.  </p>
<hr />
<p><small>© kangzj for <a href="http://kangzj.net">Kangzj</a>, 2009. |
<a href="http://kangzj.net/fckeditor-not-proper-response/">http://kangzj.net/fckeditor-not-proper-response/</a> |
<a href="http://kangzj.net/fckeditor-not-proper-response/#comments">9 条评论</a> |
Add to
<a href="http://del.icio.us/post?url=http://kangzj.net/fckeditor-not-proper-response/&title=FCKEditor: The server didn&#8217;t send back a proper XML response解决方法">del.icio.us</a>
<br/>
Post tags: <a href="http://kangzj.net/tag/fckeditor/" rel="tag">fckeditor</a>, <a href="http://kangzj.net/tag/php/" rel="tag">php</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://kangzj.net/fckeditor-not-proper-response/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>FCKEditor 2.x在php环境下的配置</title>
		<link>http://kangzj.net/fckeditor-php-configuration/</link>
		<comments>http://kangzj.net/fckeditor-php-configuration/#comments</comments>
		<pubDate>Tue, 20 Nov 2007 01:04:00 +0000</pubDate>
		<dc:creator>kangzj</dc:creator>
				<category><![CDATA[网站制作]]></category>
		<category><![CDATA[fckeditor]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">/articles/30</guid>
		<description><![CDATA[来源：未知

下载地址:

http://www.fckeditor.net/download

<span class="readmore"><a href="http://kangzj.net/fckeditor-php-configuration/" title="FCKEditor 2.x在php环境下的配置">阅读全文——共1358字</a></span>]]></description>
			<content:encoded><![CDATA[<p>来源：未知</p>
<p>下载地址:</p>
<p>http://www.fckeditor.net/download</p>
<p>效果演示:</p>
<p>http://www.fckeditor.net/demo</p>
<p><span id="more-30"></span></p>
<p>一:修改文件上传语言为PHP    <br />
    打开fckconfig.js    <br />
    找到:<br />
    var _FileBrowserLanguage = &#8216;asp&#8217;<br />
    var _QuickUploadLanguage = &#8216;asp&#8217;    <br />
    改成:<br />
    var _FileBrowserLanguage = &#8216;php&#8217;<br />
    var _QuickUploadLanguage = &#8216;php&#8217;</p>
<p>二:启用PHP文件上传</p>
<p>    1:启用FileBrowser:<br />
        打开fckeditor/editor/filemanager/browser/default/connectors/php/config.php<br />
        启用文件上传:</p>
<p>        找到:<br />
        $Config['Enabled'] = false</p>
<p>        改成:<br />
        $Config['Enabled'] = true</p>
<p>        设置上传存放目录:</p>
<p>        找到:<br />
        $Config['UserFilesPath'] = &#8216;/userfiles/&#8217;<br />
        改成:<br />
        $Config['UserFilesPath'] = &#8216;你自己的项目路径&#8217;</p>
<p>    2:启用QuickUpload<br />
        打开fckeditor/editor/filemanager/upload/php/config.php<br />
        启用文件上传:</p>
<p>        找到:<br />
        $Config['Enabled'] = false<br />
        改成:<br />
        $Config['Enabled'] = true</p>
<p>        设置上传存放目录:</p>
<p>        找到:<br />
        $Config['UserFilesPath'] = &#8216;/userfiles/&#8217;<br />
        改成:<br />
        $Config['UserFilesPath'] = &#8216;你自己的项目路径&#8217;</p>
<p>实例：<br />
        &lt;?php<br />
$fck = $_POST["FCKeditor1"];<br />
if ($fck != “”)<br />
{<br />
echo htmlspecialchars($fck);<br />
}<br />
?&gt;</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;fck测试&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form action=”index.php” method=”POST”&gt;<br />
&lt;?php<br />
include(“fckeditor/fckeditor.php”) ; //加载文件<br />
$oFCKeditor = new FCKeditor(&#8216;FCKeditor1&#8242;) ; //创建一个FCKeditor对象 ID为FCKeditor1<br />
$oFCKeditor-&gt;BasePath = “/fck/fckeditor/” ; //设置FCKeditor路径<br />
$oFCKeditor-&gt;Value = ” ; //设置默认值<br />
$oFCKeditor-&gt;Create() ; //创建<br />
?&gt;<br />
&lt;input type=”submit” value=”提交”&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p style='text-align:left'>&copy; 2007 &#8211; 2009, <a href='http://kangzj.net'>kangzj</a>. 版权所有.  </p>
<hr />
<p><small>© kangzj for <a href="http://kangzj.net">Kangzj</a>, 2007. |
<a href="http://kangzj.net/fckeditor-php-configuration/">http://kangzj.net/fckeditor-php-configuration/</a> |
<a href="http://kangzj.net/fckeditor-php-configuration/#comments">沙发还在</a> |
Add to
<a href="http://del.icio.us/post?url=http://kangzj.net/fckeditor-php-configuration/&title=FCKEditor 2.x在php环境下的配置">del.icio.us</a>
<br/>
Post tags: <a href="http://kangzj.net/tag/fckeditor/" rel="tag">fckeditor</a>, <a href="http://kangzj.net/tag/php/" rel="tag">php</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://kangzj.net/fckeditor-php-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

