Windows下asp,php运行速度比较
今天比较了一下在Windows下asp,php运行速度,分别用asp,php写了一个程序,功能为:读取MSSQL100条记录,50万次加法(整数运算)和20万次开方(浮点运算)。 Apache+php: 运行时间35ms 运行时间201.4ms 运行时间361.5ms IIS+php: 运行时间1003.8s 运行时间217.4s
ASP小偷程序如何利用XMLHTTP实现表单的提交
利用XMLHTTP来制作小偷的具体细节落伍很多人都发过和讨论过了,但是在制作ASP小偷的过程中,很多人就发现ASP小偷不如PHP小偷的那么强 大了。确实,如果在原网站如果存在表单提交或cookies的验证,对于ASP来说,不使用基于SOCKET的组件就难以完成,其实,XMLHT
ASP汉字转换UTF-8及UTF-8转换GB2312
汉字转换为UTF-8 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_unicodechr(38) Str_unicode=Str_unicodechr(35) Str_unicode=Str_unicodechr(120) Str_unicode=Str_unicode H
电话号码变成图片的ASP代码
以下是引用片段: % Call Com_CreatValidCode(Request.QueryString(tel)) Public Sub Com_CreatValidCode(pTel) ———-禁止缓存 Response.Expires = 0 Response.AddHeader Pragma,no-cache Response.AddHeader cache-ctrol,no-cache Response.ContentType
asp对于提取随机记录
首先看看pjblog中随机记录插件的实现方法 Item_rs 在前面得到的需要取出的记录数 Random_sql=。。。 (省略) Random_rs.open Random_sql,conn,1,1 ========================================= Count_rs=Random_rs.RecordCount—-记录总数 Item_rs=LoadModSet.

每个asp程序员必懂的知识
数据库连接: % set conn=server.createobject(adodb.connection) conn.open driver={microsoft access driver (*.mdb)};dbq=server.mappath(数据库名) % 打开数据库: exec=select * from 数据库表 set rs=server.createobject(adodb.recordset) rs.open exe
asp隐藏下载地址和防盗代码
% function downloadfile(strfile) strfilename=strfile response.buffer=true response.clear set s=server.createobject(adodb.stream) s.open s.type=1 on error resume next set fso=server.createobject(scripting.filesystemobject) if not fso.fileexi
ASP函数-日期转换函数
Function FormatDate(byVal strDate,byVal strFormat) Accepts strDate as a valid date/time, strFormat as the output template. The function finds each item in the template and replaces it with the relevant information extracted from strDate. Yo
ASP辨别搜索引擎蜘蛛的代码 谷歌 百度 雅虎 搜狐 MSN
ASP识别搜索引擎蜘蛛(谷歌、百度、雅虎、搜狐、MSN)代码如下: % function GetBot() 查询蜘蛛 dim s_agent GetBot= s_agent=Request.ServerVariables(HTTP_USER_AGENT) 关键判断语句 if instr(1,s_agent,googlebot,1) 0 then GetBot=google end if if instr(1
ASP编程学习的28个注意事项
1.不要放过任何一个看上去很简单的小编程问题――他们往往并不那么简单,或者可以引伸出很多知识点; 2.会用asp,并不说明你会asp; 3.看asp的书,是学不了asp语言的; 4.浮躁的人容易说:asp语言不行了,应该学yy;――是你自己不行了吧!? 5.浮躁的人容易