- 博客(12)
- 资源 (9)
- 问答 (1)
- 收藏
- 关注
原创 apache 怎么禁止操作根目录以外的位置
怎么设置apache 让程序只能操作本程序根目录以内的文件。现在用file_put_contents之类的文件操作方法可以操作根目录以外的文件。
2013-06-23 10:01:51 347
转载 检测 discuzx2 是否登录
require './source/class/class_core.php';$discuz = & discuz_core::instance();$discuz->init_cron = false;$discuz->init_session = false;$discuz->init();echo $_G['uid'];
2012-02-15 16:51:59 320
转载 mysql 子查询
原语句delete from news where id in(select max(id) from news group by title having count(title)>1)出错 更改后语句 delete from long_news where id in(select a.id from (select max(id)
2011-03-27 19:10:00 394
原创 问题小结
preg 加参数注意匹配"/"浮动层出错时放到上部位置可解决iis重写不支持检测文件和目录RewriteRule /(.+/)$ /index\.php\?a=$1 [L]RewriteRule /([^=]+\.html) /index\.php\?a=$1 [L]同步滚动$("#d1").scroll(functi
2011-02-20 11:49:00 290
原创 sql server 相关
<br />declare @a varchar(100);<br />set @a=(select count(*) a from tb) ;// 将结果集给变量<br />select @a+1
2010-09-25 09:37:00 167
原创 mysql 相关
alter table form add m varchar(54) #增加字段alter table form modify column t int ; #更改字段类型alter table form change s s char(100) not null; #更改整个字段alter table singlepage modify `updTime` timestamp
2010-09-24 17:01:00 194
转载 ASP写的汉字转换UTF-8及UTF-8转GB2312
<br />汉字转换为UTF-8 <br />function chinese2unicode(Str) dim i dim Str_one dim Str_unicode for i=1 to len(Str) Str_one=Mid(Str,i,1) Str_unicode=Str_unicode&chr(38) Str_unicode=Str_unicode&chr(35) Str_unicode=Str_unicode&chr(120) Str_
2010-09-05 09:14:00 304
原创 PHP 通用防注
<br />if(preg_match('(select|insert|update|delete|/'|#|count|chr|truncate|char|declare|union|into|load_file|outfile|script)',implode(array_merge($_GET,$_POST,$_COOKIE),','),$filter))die("非法字符{$filter[0]}");
2010-08-26 14:23:00 410
原创 asp全能防注 正则匹配提高效率
<%'================================='' 杨道龙' qq:745547797' email:745547797@qq.com''=================================if instr(2,request.ServerVariables("URL"),"/")<1 then '仅匹配根目录下的const FilterStr="exec|insert|select|delete|update|c
2010-08-26 12:07:00 266
原创 下拉层
<br /> <br />long_abc = "";long_foc = 0;long_c = true;long_tem = "";long_fx = "";$(function() { $("#words").keyup(function() { if ($.trim($("#words").val()).length < 1) { $("#long_ul").hide(); long_c = true
2010-08-25 14:48:00 330
原创 php checkbox集合
function formCheckbox(){ /*组合checkbox*/ $("form").submit(function() { var arr = Array(); $("form
2010-08-20 17:08:00 218
正则表达式系统教程 CHM
2012-11-07
apache 怎么禁止操作根目录以外的位置
2013-06-23
TA创建的收藏夹 TA关注的收藏夹
TA关注的人