ASP函数-2个日期格式转换函数
将日期格式化为 RFC822 格式 Function DateToRFC822(byVal dtaVal) Dim strCurLocale : strCurLocale = GetLocale() SetLocale(en-gb) dtaVal = CDate(dtaVal) DateToRFC822 = WeekdayName(Weekday(dtaVal),True), _ Right(0Day(dtaVal),2) _ MonthName(Month
用VB将ASP代码封装成DLL
一、 引言 Server端的脚本运行环境,它简单易用,不需要编译和连接,脚本可以在 Server端直接运行,并且它支持多用户、多线程,在 Web开发中得到了广泛的应用。服务器端的组件有别于客户端的组件。客户端的组件是通过网络传输,依靠HTML来起作用,而且只能在IE
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函数-日期转换函数
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
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产生百度的xml代码
% nowtime=nowtimeupdatetimenow()/updatetimevbcrlf hour(now()) minute(now()) second(now()) set rshot=server.CreateObject(adodb.recordset) sql=select * from 表名 order by id asc rshot.open sql,conn,1,1 if not (rshot.eof and rshot.bof) then i=
ASP采用jmail发送邮件
ASP使用jmail发送邮件代码实例: mailtest=request(mailtest) Set jmail = Server.CreateObject(JMAIL.Message) 建立发送邮件的对象 jmail.silent = true 屏蔽例外错误,返回FALSE跟TRUE两值j jmail.Charset = GB2312 邮件的文字编码 jmail.ContentType = tex

ASP生成XML动态数据读取代码示例
!–#include file=M_conn.asp– % username=request(username) set rshot=server.CreateObject(adodb.recordset) sql=select * from TZ_all where username=username order by id desc rshot.open sql,conn,1,1 if not (rshot.eof and rshot.bof) then i=0 do
ASP数据库连接方法语法归纳
经常使用到有关数据库的操作。包括连接代码、SQL命令等等,又不曾刻意去记忆它们(我本人是不愿意去记这东东),所以常常在用到的时候又去查书本,翻来翻去。一些比较少用的数据库还不一定能顺利找到,所以现在把它们全归纳到这里,提供大家参考。(个人水平