ascb

Want to know ascb? we have a huge selection of ascb information on alibabacloud.com

ASP calls pure IP database instances

Address'================================================ =====Function IntToIP (IntValue)P4 = IntValue-Fix (IntValue/256) * 256IntValue = (IntValue-p4)/256P3 = IntValue-Fix (IntValue/256) * 256IntValue = (IntValue-p3)/256P2 = IntValue-Fix (IntValue/256) * 256IntValue = (IntValue-p2)/256P1 = IntValueIntToIP = Cstr (p1) "." Cstr (p2) "." Cstr (p3) "." Cstr (p4)End Function'================================================ ====='Obtain the starting IP address location'========================

ASP reads IP library (DAT file)

Function'================================================ ====='Integer reverse IP Address'================================================ =====Function inttoip (intvalue)P4 = intvalue-fix (intvalue/256) * 256Intvalue = (IntValue-p4)/256P3 = intvalue-fix (intvalue/256) * 256Intvalue = (IntValue-p3)/256P2 = intvalue-fix (intvalue/256) * 256Intvalue = (intvalue-P2)/256P1 = intvalueInttoip = CSTR (P1) "." CSTR (P2) "." CSTR (P3) "." CSTR (P4)End Function'====================================

Get picture width and height of class, support Jpg,gif,png,bmp '

' Get picture width and height of class, support Jpg,gif,png,bmp 'Class Imgwhinfo Dim ASOPrivate Sub Class_InitializeSet aso=server.createobject ("ADODB. Stream ")ASO. Mode=3ASO. Type=1ASO. OpenEnd SubPrivate Sub Class_TerminateErr.ClearSet aso=nothingEnd Sub Private Function bin2str (Bin)Dim I, StrFor I=1 to LenB (Bin)CLOW=MIDB (bin,i,1)If ASCB (Clow) str = str CHR (ASCB (Clow))ElseI=i+1If I End IfNextBin

ASP Wsimage Component Add watermark Practical Code _ Application Tips

' The text watermark processing value assigned to BB, at this time, text watermark no opacity ' ============ Adjust text transparency ================ Set myjpeg = Server.CreateObject ("Persits.jpeg") Myjpeg.openbinary AA Set Logo = Server.CreateObject ("Persits.jpeg") Logo.openbinary BB Myjpeg.drawimage 0,0, Logo, 0.2 ' 0.3 is transparency Cc=myjpeg.binary ' assigns the final result to CC, and you can also generate the target picture. Response. BinaryWrite cc ' converts binary output t

Practical code for adding a watermark to the ASP wsImage component

, the text watermark has no opacity.'============== Adjust the text transparency ========================Set MyJpeg = Server. CreateObject ("Persits. Jpeg ")MyJpeg. OpenBinary aaSet Logo = Server. CreateObject ("Persits. Jpeg ")Logo. OpenBinary bbMyJpeg. DrawImage 0.2, Logo, '0. 3 is transparencyCc = MyJpeg. Binary assign the final result to cc, and the target image can also be generated.Response. BinaryWrite CC' will be output to the browser.MyJpeg. Save (server. mappath (paths + filename ))Set

A class that can read ID3 information [MP3 can be easily added]

Error resume nextDim varlen, Clow, CCC, skipflag, I, biySkipflag = 0CCC = ""For I = 1 to numClow = midb (binstr, I, 1)If ASCB (Clow) = 0 thenSkipflag = 0'Ccc = NULLElseIf skipflag = 0 thenIf ASCB (Clow)> 127 thenCCC = CCC CHR (ASCW (midb (binstr, I + 1, 1) Clow ))Skipflag = 1ElseCCC = CCC CHR (ASCB (Clow ))End ifElseSkipflag = 0End if End ifNextBin2str = cccE

Shortest component upload code (only 9 lines)

Upload | No components I studied the no component upload, and made one of the simplest possible ways ----Use 9 lines of code to truly implement no component upload, how to say that spent half a day to write 9 lines of code is a bit of efficiency and results. So I wrote this article. Formsize=request.totalbytes () Formdata=request.binaryread (Formsize) Dataheader=leftb (FORMDATA,INSTRB (FORMDATA,CHRB) AMP;CHRB (10)) Strfiledata=midb (Formdata,lenb (Dataheader), LenB (FormData)-lenb (dataheader

ASP Upload Vulnerability

checkfiletype (filename)On Error resume nextCheckfiletype = falseDim fstream, fileext, stamp, IFileext = mid (filename, limit Rev (filename, ".") + 1)Set fstream = server. Createobject ("ADODB. Stream ")Fstream. OpenFstream. type = adtypebinaryFstream. loadfromfile filenameFstream. Position = 0Select case fileextCase "jpg", "Jpeg"Stamp = fstream. Read (2)For I = 0 to 1If ASCB (midb (stamp, I + 1, 1) = JPG (I) Then checkfiletype = true else checkfilet

PlainText encryption-plaintext encryption P.E.

keytemp as StringDim Key1 as Byte for k = 1 to keytemp = keytemp CStr (Int (RND * (9) + 1)) Next Key1 = CByte (Mid (Keytemp, one, 1) Mid (Keytemp, 1)) for i = 1 to Len (strsource) Strchar = Mid (strsource, I, 1) ' Remove a character from the string to be encrypted Blowdata = AscB (MidB (Strchar, 1, 1)) Xor Key1 ' take characters of low byte and Key1 for XOR operation shigdata =

Two files uploaded, only 30 lines of code

Upload ' Upload.asp Function Intmin (n,y) If NIntmin=int (N) ElseIf y>0 Then Intmin=int (y) Else Intmin=n End If End Function Function Getformvalue (Name) Dim Formsize,formdata,dataheader,datastart,dataend,formnamestart,formnameend,formname,firstfilter Formsize=request.totalbytes () Formdata=request.binaryread (Formsize) Firstfilter=true For I=1 to Len (Name) TMP=TMPAMP;CHRB (AscB) (Mid (name,i,1)) Next Name=tmp Dataend=0 Datastart=0 Do While formsiz

An ASP method for judging GIF image size

Here is my GIF image format to determine the size of the GIF image, please give some advice Up.htm Up.asp Formsize = Request.TotalBytes FormData = Request.BinaryRead (formsize) BNCRLF=CHRB (+) ChrB (10) Divider=leftb (FORMDATA,INSTRB (FORMDATA,BNCRLF)-1) DATASTART=INSTRB (Formdata,bncrlf Bncrlf) +4 DATAEND=INSTRB (Datastart+1,formdata,divider)-datastart IMAGE=MIDB (Formdata,datastart,dataend) Head_version = ASCB (MidB (image,1,3)) Head_subversion =

How to judge the size of GIF image

How to judge the size of GIF image Here is my GIF image format to determine the size of the GIF image, please give some advice Up.htm Up.asp Formsize = Request.TotalBytes FormData = Request.BinaryRead (formsize) BNCRLF=CHRB (+) ChrB (10) Divider=leftb (FORMDATA,INSTRB (FORMDATA,BNCRLF)-1) DATASTART=INSTRB (Formdata,bncrlf Bncrlf) +4 DATAEND=INSTRB (Datastart+1,formdata,divider)-datastart IMAGE=MIDB (Formdata,datastart,dataend) Head_version = AS

Provision interface of Zhejiang mobile misc1.6 platform (SMS custom link synchronization Interface)

-encoded string.Stransi2unicode = ""Len1 = lenb (ascontents)If len1 = 0 Then exit functionFor I = 1 to len1Varchar = midb (ascontents, I, 1)Varasc = ASCB (varchar)If varasc> 127 thenStransi2unicode = stransi2unicode CHR (ASCW (midb (ascontents, I + 1, 1) varchar ))I = I + 1ElseStransi2unicode = stransi2unicode CHR (varasc)End ifNextEnd Function Function base64encode (ascontents)'Encode the ANSI encoded string with base64'Ascontents should be an ANS

ASP base64 and Decryption function code _ Application Skills

(ascontents) ' Converts an ANSI-encoded string into a Unicode-encoded string Stransi2unicode = "" Len1=lenb (ascontents) If Len1=0 then Exit function For I=1 to Len1 VARCHAR=MIDB (ascontents,i,1) VARASC=ASCB (varchar) If VARASC > 127 Then Stransi2unicode = Stransi2unicode Chr (AscW (MidB (ascontents,i+1,1) varchar)) I=i+1 Else Stransi2unicode = Stransi2unicode Chr (VARASC) End If Next End Function Function Base64Encode (ascontent

VBS 16 to validate specific characters _vbs

Copy Code code as follows: ' Verify character: Fastslz File=wscript.scriptfullname Dim Slz Set Slz = CreateObject ("ADODB.stream") Slz. Type = 1 Slz. Mode = 3 Slz. Open Slz. Position = 0 Slz. LoadFromFile file Bin=slz.read (18) If AscB (MidB (bin,12,1)) =h66 and AscB (MidB (bin,13,1)) =h61 and AscB (MidB (bin,14,1)) =h73 and

An ASP method for judging GIF image size

Here is my GIF image format to determine the size of the GIF image, please give some advice Up.htm Up.asp Formsize = Request.TotalBytes FormData = Request.BinaryRead (formsize) BNCRLF=CHRB (+) ChrB (10) Divider=leftb (FORMDATA,INSTRB (FORMDATA,BNCRLF)-1) DATASTART=INSTRB (Formdata,bncrlf Bncrlf) +4 DATAEND=INSTRB (Datastart+1,formdata,divider)-datastart IMAGE=MIDB (Formdata,datastart,dataend) Head_version = ASCB (MidB (image,1,3)) Head_subve

New check whether SQL script conforms to ANSI encoding format

Tags: character ctimob file encoding osi patmaintor meaning ' ******************************************************************* ' effect: Transfer convert file encoding format ' parameter meaning: Incode for incoming file encoding Outcode converted file Encoding ' to determine if the file type is ANSI type, if not, provide a choice whether you need to update the file automatically ' ******************************************************** Function read (path) turns the array of byte () into

Vbs hexadecimal verification of specific characters

CopyCodeThe Code is as follows: 'verification character: fastslz File = wscript. scriptfullname Dim SLZ Set SLZ = Createobject ("ADODB. Stream ") SLZ. type = 1 SLZ. mode = 3 SLZ. Open SLZ. Position = 0 SLZ. loadfromfile File Bin = SLZ. Read (18) If ASCB (midb (bin,) = H66 and ASCB (midb (bin,) = H61 and ASCB (midb (bin )) = h73 and

ASP base64 encryption/Decryption Function Code

stransi2unicode (ascontents)'Convert an ANSI-encoded string to a Unicode-encoded string.Stransi2unicode = ""Len1 = lenb (ascontents)If len1 = 0 Then exit functionFor I = 1 to len1Varchar = midb (ascontents, I, 1)Varasc = ASCB (varchar)If varasc> 127 thenStransi2unicode = stransi2unicode CHR (ASCW (midb (ascontents, I + 1, 1) varchar ))I = I + 1ElseStransi2unicode = stransi2unicode CHR (varasc)End ifNextEnd Function Function base64encode (asconte

ASP program to get picture width and height of the class source code

Program | source code | source Code Class Imgwhinfo ' Get a picture of the width and height of classes, support Jpg,gif,png,bmp Dim ASO Private Sub Class_Initialize Set aso=server.createobject ("ADODB. Stream ") ASO. Mode=3 ASO. Type=1 ASO. Open End Sub Private Sub Class_Terminate Err.Clear Set aso=nothing End Sub Private Function bin2str (Bin) Dim I, Str For I=1 to LenB (Bin) CLOW=MIDB (bin,i,1) If ASCB (Clow) str = str CHR (

Total Pages: 15 1 2 3 4 5 .... 15 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.