<?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>爱周末 &#187; phpwind</title>
	<atom:link href="http://zhoumo123.cn/category/phpwind/feed" rel="self" type="application/rss+xml" />
	<link>http://zhoumo123.cn</link>
	<description>知识分享，共同进步。zhoumo123.cn</description>
	<lastBuildDate>Thu, 07 Nov 2019 05:53:49 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.1</generator>
	<item>
		<title>上传附件失败，造成的原因可能有:附件目录不可写(777)&#8230;</title>
		<link>http://zhoumo123.cn/phpwind/361.html</link>
		<comments>http://zhoumo123.cn/phpwind/361.html#comments</comments>
		<pubDate>Thu, 11 Sep 2014 07:30:35 +0000</pubDate>
		<dc:creator><![CDATA[zhangc]]></dc:creator>
				<category><![CDATA[phpwind]]></category>

		<guid isPermaLink="false">http://zhoumo123.cn/?p=361</guid>
		<description><![CDATA[phpwind 上传错误提示 “ 上传附件失败，造成的原因可能有:附件目录不可写(777)、空间在安全模式下、空间大小已不足。” 解决方法： 方法1、清理 A&#62; 清理您的服务器磁盘或虚拟空间。满状态的磁盘空间会出现前台提交表单成功但附件没有上传的现象。通常上传的附件大小显示为 0。 B&#62; 清理系统临时目录。 Ø 在 php.ini 中没有设置上传临时目录的情况下，系统会将上传到服务器的文件放在系统的临时目录里（Windows 服务器的系统临时目录是 c:\Windows\TEMP；Linux 的系统临时目录是/tmp），这个目录满了，上传文件就会失败。 Ø 在 php.ini 中， ...  <a href="http://zhoumo123.cn/phpwind/361.html">  阅读全文 </a>]]></description>
				<content:encoded><![CDATA[<p>phpwind 上传错误提示 “ 上传附件失败，造成的原因可能有:附件目录不可写(777)、空间在安全模式下、空间大小已不足。” 解决方法：</p>
<div id="attachment_364" style="width: 424px" class="wp-caption alignnone"><a href="http://img.zhoumo123.cn/wp-content/uploads/uploaderror.jpg"><img class="wp-image-364 size-full" src="http://img.zhoumo123.cn/wp-content/uploads/uploaderror.jpg" alt="uploaderror" width="414" height="128" /></a><p class="wp-caption-text">上传附件失败</p></div>
<p><strong>方法1、清理</strong><br />
A&gt; 清理您的服务器磁盘或虚拟空间。满状态的磁盘空间会出现前台提交表单成功但附件没有上传的现象。通常上传的附件大小显示为 0。<br />
B&gt; 清理系统临时目录。<br />
Ø 在 php.ini 中没有设置上传临时目录的情况下，系统会将上传到服务器的文件放在系统的临时目录里（Windows 服务器的系统临时目录是 c:\Windows\TEMP；Linux 的系统临时目录是/tmp），这个目录满了，上传文件就会失败。<br />
Ø 在 php.ini 中，可以通过 upload_tmp_dir 的值，来设定通过PHP程序上传的文件的临时目录。清空该目录。</p>
<p><strong>方法2、附件目录继承写权限</strong><br />
上传附件要求附件目录有写权限，否则上传失败。<br />
A&gt; 如果服务器是 Linux 主机，请将附件目录的权限设置为 777，并将权限继承到附件目录的下级目录（详细）；<br />
B&gt; 如果服务器是 Windows 主机，请设置附件目录 IIS 来宾账户（或者运行这个站点的 IIS 账号）写权限，并继承到附件目录的下级目录。特别情况下，需要加设临时目录的IIS来宾账号（或运行IIS的账号）对系统临时目录有写权限；<br />
C&gt; 咨询空间供应商。有些空间限制了目录属性，导致在附件目录下建立子目录时失败</p>
<p><strong>方法3、确定上传的附件大小</strong><br />
服务器允许上传的附件大小设置点php.ini/upload_max_filesize，默认为2M<br />
服务器允许提交表单的大小设置点php.ini/post_max_size，默认为8M<br />
如果上传的附件和表单超过了这两个参数设置的大小，就会出现上传附件不成功的情况。这时，需要适当改大参数的值（如果上传的附件超过 6M，建议使用 ftp 或者其他方式上传），然后重新启动一下 web 服务器软件。<br />
另外，虚拟主机一般不支持大于2M的附件上传。所以虚拟机下也建议使用FTP工具。</p>
<p><strong>方法4、修改Apache配置文件</strong><br />
在使用Apache的情况下，指定配置文件里的 open_basedir 参数可以限制 Apache 能够访问的目录。如果指定了这个参数，可能导致上传附件不成功。此时，将系统的临时目录或者 php.ini 中 upload_tmp_dir 参数设置的目录、附件目录添加到 open_basedir 设置中或者将这个参数注释掉（慎用），然后重新启动 Apache 。</p>
]]></content:encoded>
			<wfw:commentRss>http://zhoumo123.cn/phpwind/361.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
