站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:FAQ Forum Hot Topics
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
===我怎样更改文件上传路径?=== The default upload path can be changed by adding a line of code to your [[WordPress:Editing_wp-config.php|wp-config.php file]]. 通过给你的[[WordPress:Editing_wp-config.php|wp-config.php 文件]]添加一行代码,可以更改默认上传路径。 Just BEFORE the line that says <code>require_once(ABSPATH.'wp-settings.php');</code> add this line: <code>define('UPLOADS', 'wp-content/myimages');</code> 在显示为<code>require_once(ABSPATH.'wp-settings.php');</code>的行之前,添加这一行: <code>define('UPLOADS', 'wp-content/myimages');</code> In the example above, this will result in uploads being placed in your <code>wp-content/myimages/2006/01</code> folder. Note that 2006 is the current year, and 01 is the current month, in this case January. If the myimages directory does not exist it will be created as long as the parent folder <code>wp-content</code> is writeable. 在上述的例子中,这会导致上传内容上传到了你的<code>wp-content/myimages/2006/01</code>文件夹。注意,2006是当前的年份,01是当前的月份,在这里,是1月。如果不存在myimages目录,只要母文件夹<code>wp-content</code>是可写的,就会创建目录。 An unwriteable parent folder will cause a message similar to this: :"Unable to create directory <code>/sample.com/wordpress/wp-content/myimages</code>. Is its parent directory writable by the server?" 不可写的母文件夹会导致类似这样的信息: :"不能够创建目录<code>/sample.com/wordpress/wp-content/myimages</code>。服务器可以编写这个母文件夹吗?" A plugin alternative to enable uploading like WordPress 1.5.2 is available with Filosofo's Old-style-uploads: http://www.ilfilosofo.com/blog/old-style-upload plugin alternative能够使得上传,如WordPress1.5.2通过Filosofo的旧式上传,http://www.ilfilosofo.com/blog/old-style-upload See also, [[WordPress:Changing File Permissions]] and a related Forum Thread http://wordpress.org/support/topic/55954 也看看,[[WordPress:Changing File Permissions|更改文件权限]]以及相关的论坛主题http://wordpress.org/support/topic/55954 *Forum Pasteable answer <nowiki>The default upload path can be changed by adding a line of code to your <a href="http://codex.wordpress.org/Editing_wp-config.php">wp-config.php file</a>. <br /> Just BEFORE the line that says `require_once(ABSPATH.'wp-settings.php');`<br /> add this line:<br /> `define('UPLOADS', 'wp-content/myimages');` <br /> *论坛可粘贴的答案 <nowiki>通过向你的<a href="http://codex.wordpress.org/Editing_wp-config.php">wp-config.php 文件添加一行代码,可以更改默认的上传路径</a>. <br /> 在显示为`require_once(ABSPATH.'wp-settings.php');`<br />的行之前,添加这一行:<br /> `define('UPLOADS', 'wp-content/myimages');` <br /> In the example above, this will result in uploads being placed in your `wp-content/myimages/2006/01` folder. Note that 2006 is the current year, and 01 is the current month, in this case January. <br /> 在上述的例子中,会导致上传内容放置到你的`wp-content/myimages/2006/01`文件夹。注意2006是当前年份,01是当前月份,在这里是一月。 <br /> If the myimages directory does not exist it will be created as long as the parent folder `wp-content` is writeable. An unwriteable parent folder will cause a message similar to this:<br /> 如果不存在myimages目录,只要母文件夹`wp-content`是可写的,就可以创建这个目录。不可写的母文件夹会产生类似这样的信息:<br /> "Unable to create directory `/sample.com/wordpress/wp-content/myimages`. Is its parent directory writable by the server?" <br /> A plugin alternative to enable uploading like WordPress 1.5.2 is available with Filosofo's Old-style-uploads: http://www.ilfilosofo.com/blog/old-style-upload <br /> See also, <a href="http://codex.wordpress.org/Changing_File_Permissions">Changing File Permissions</a> and a related Forum Thread http://wordpress.org/support/topic/55954</nowiki> "不能够创建目录`/sample.com/wordpress/wp-content/myimages`. 服务器可以编写母文件夹吗?" <br /> A plugin alternative 能够上传,如WordPress 1.5.2 ,使用Filosofo的旧式上传方法: http://www.ilfilosofo.com/blog/old-style-upload <br /> 也看看, <a href="http://codex.wordpress.org/Changing_File_Permissions">更改文件权限</a> 和相关的论坛主题http://wordpress.org/support/topic/55954</nowiki>
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)