2009-06-29 15:31 | Posted by Sunshow | Filed Under Linux, Network
curl -H "Expect:" -F "action=upload_mf.php" -F "file=@1246285971.xml;type=text/xml" http://localhost/upload_mf.php 加上"Expect:"的Header是因为Curl会默认带上"Expect: 100-continue",而我用的lighttpd 1.4.18不支持这个Header,会返回417的状态码导致出错 标签:curl, lighttpd, 上传, 文件 相关日志 [转载+整理]WordPress上传文件类型限制解决办法 (1) Windows API移动文件 (0) TestLink文件上传问题修复 (0)
2009-02-05 16:52 | Posted by Sunshow | Filed Under PHP
默认安装TestLink完毕后,内置的FCKEditor配置居然是使用ASP的,要将其修改为使用PHP 编辑third_party/fckeditor/fckconfig.js 查找以下行并去掉行首的注释: FCKConfig.ProtectedSource.Add( /<?[sS]*??>/g ) ; // PHP style server side code 查找以下代码,并将其中的asp改成php var _FileBrowserLanguage = 'asp' ; // asp | aspx | cfm | lasso | perl | php | pyvar _QuickUploadLanguage = 'asp' ; // asp | aspx | cfm | lasso | php 编辑以下两个文件 third_party/fckeditor/editor/filemanager/browser/default/connectors/php/config.php third_party/fckeditor/editor/filemanager/upload/php/config.php 修改两个变量: $Config['UserFilesPath'] = '/TestLink/userfiles/' [...]
2007-03-08 17:01 | Posted by Sunshow | Filed Under WordPress
WordPress 2.1 之前的版本修改 wp-includes/functions-post.php Wordpress 2.1 之后的版本修改 wp-includes/functions.php 查找: function wp_check_filetype($filename, $mimes = null) { 在底下的$mimes里加入要添加的文件类型,例如 rar : 'rar' => 'application/rar', 不明白为啥wordpress开发组不将其作为后台自定义功能放开 参考资料: http://www.iyoyo.org/posts/139.html http://www.betalog.com/post/822.html 标签:WordPress, 上传 相关日志 [WordPress]对不同域名使用不同的主题 (0) 插件更新:Ultimate Tag Warrior (2) Anti Spam Image 算术版 (1) WordPress 2.0.5 - Ronan (1) Feedburner Feed Statistics Collector (0)
Recent Comments