摘要: <?php$ua = $_SERVER["HTTP_USER_AGENT"];$filename = "中文 文件名.txt";$encoded_filename = urlencode($filename);$encoded_filename = str_replace("+", "%20", $encoded_filename);header('Content-Type: application/octet-stream');if (preg_match("/MSIE/" 阅读全文
posted @ 2012-09-21 17:18 令狐葱★ 阅读(725) 评论(0) 推荐(0) 编辑
摘要: 1,确保apache支持mod_rewrite1)打开Apache2.2\conf\httpd.conf搜索 LoadModule rewrite_module modules/mod_rewrite.so (Apache2是这个)去掉前面的#2)搜索AllowOverride None 替换为 AllowOverride All(注意,有好几个)2,在 CI 根目录下新建立一个配置文件,命名为: .htaccess,文件内容如下:RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.* 阅读全文
posted @ 2012-09-21 15:59 令狐葱★ 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Javascript文件在windows XP+IE6下报莫名其妙错误,提示说缺少"}"之类,但是检查了js文件,没有发现任何语法错误。在win7+IE7及其他浏览器上没有报错。很诡异的问题,最后发现是所引用的js文件编码格式为ANSI,将文件修改为utf-8编码,问题解决。 阅读全文
posted @ 2012-09-21 15:33 令狐葱★ 阅读(235) 评论(0) 推荐(0) 编辑