54 powermanNote:If you need the string value of the file form, use GetFullName ("file ")If you need a file Form file name, use GetFileName ("file ")If you need the file Form Extension, use GetExtName ("file ")If you need the value of a common text form, use MyRequest ("password ")If the binary value of the file form is required, MyRequest ("file") is also used ")Save the file with SaveFile ("file", "myUpload.jpg ")Format
(Upfile_5xsoft_stream.read (1)) If C > 127 Then if Upfile_ 5xsoft_stream.eos then Exit for stemp=stempchr (AscW (ChrB (AscB (1))) CHRB (c)) i=i+1 Else STEMP=STEMPCHR (c) nbsp; End If next substring=stemp End Function
Private Function instring (thestart,varstr) dim i,j,bt,thelen,str instring=0 str= ToByte (VARSTR) thelen=lenb (Str) for I=thestart to Upfile_5xsoft_stream.size-thelen
Personal Code Style Comments (the first lowercase alphabetical table in the variable name represents the variable type)I: for the integer type;S: for string;Function U2utf8 (Byval a_inum)Dim Sresult,sutf8Dim Itemp,ihexnum,i
Ihexnum = Trim (a_inum)
If ihexnum = "" ThenExit FunctionEnd If
Sresult = ""
If (Ihexnum Sresult = Sresult IhexnumElseIf (Ihexnum Sresult = ChrB (h80 + (Ihexnum and h3f))Ihexnum = Ihexnum h40Sresult =
Copy Code code as follows:
' Personal Code style note (the first lowercase alphabet in the variable name represents the variable type)
' I: an integer type;
' s: string;
Function U2utf8 (Byval a_inum)
Dim Sresult,sutf8
Dim Itemp,ihexnum,i
Ihexnum = Trim (a_inum)
If ihexnum = "" Then
Exit Function
End If
Sresult = ""
If (Ihexnum Sresult = Sresult Ihexnum
ElseIf (Ihexnum Sresult = ChrB (h80 + (Ihexnum and h3f))
Ihexnum = ihex
(ChrB (AscB (Objstream.read (1)) AMP;CHRB (c)))
I=i+1
Else
STEMP=STEMPAMP;CHR (c)
End If
Next
Substring=stemp
End Function
Function instring (THESTART,VARSTR)
Dim i,j,bt,thelen,str
Instring=0
Str=tobyte (VARSTR)
Thelen=lenb (STR)
For I=thestart to Objstream.size-thelen
If I>objstream.size then Exit Function
Objstream. Position=i-1
If AscB (objstream. Read (1)) =ASCB (MidB (str,1)) Then
Ins
Upfile_5xsoft_stream.eos then Exit for
C=ASCB (Upfile_5xsoft_stream.read (1))
If C > 127 Then
If Upfile_5xsoft_stream.eos then Exit for
STEMP=STEMPAMP;CHR (AscW (ChrB (AscB (Upfile_5xsoft_stream.read (1)) AMP;CHRB (c)))
I=i+1
Else
STEMP=STEMPAMP;CHR (c)
End If
Next
Substring=stemp
End Function
Private Function instring (THESTART,VARSTR)
Dim i,j,bt,thelen,str
Instring=0
Str=tobyte (VARSTR)
T
;setwidth (18);$obActiveSheet->getcolumndimension (' C ')->setwidth (15);$obActiveSheet->getcolumndimension (' D ')->setwidth (15);$obActiveSheet->getcolumndimension (' E ')->setwidth (15);$obActiveSheet->getcolumndimension (' H ')->setwidth (15);Export$this->outputphpexcel ($objPHPExcel, $filename);}/*** Attendance Data Write* @param $SheetIndex Cell Object* @param $Cycle Cycle Data list* @param $_clock Employee Attendance data* @return Number returns the current maximum row count*/Private Func
, theLen)
Dim I, c, stemp
Upfile_5xSoft_Stream.Position = theStart-1
Stemp = ""
For I = 1 to theLen
If upfile_5xSoft_Stream.EOS then Exit
C = ascB (upfile_5xSoft_Stream.Read (1 ))
If c gt; 127 Then
If upfile_5xSoft_Stream.EOS then Exit
Stemp = stemp Chr (AscW (ChrB (AscB (upfile_5xSoft_Stream.Read (1) ChrB (c )))
I = I + 1
Else
Stemp = stemp Chr (c)
End If
Next
SubString = stemp
End function
Private Fun
, 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
' Personal Code style note (the first lowercase alphabet in the variable name represents the variable type)' I: an integer type;' s: string;Function U2utf8 (Byval a_inum)Dim Sresult,sutf8Dim Itemp,ihexnum,i
Ihexnum = Trim (a_inum)
If ihexnum = "" ThenExit FunctionEnd If
Sresult = ""
If (Ihexnum Sresult = Sresult IhexnumElseIf (Ihexnum Sresult = ChrB (h80 + (Ihexnum and h3f))Ihexnum = Ihexnum h40Sresult = ChrB
Private function encrypt (byval strsource as string) as string 'encryptionDim blowdata as byteDim bhigdata as byteDim I as longDim K as integerDim strencrypt as stringDim strchar as stringDim keytemp as stringDim key1 as byte
For k = 1 to 30Keytemp = keytemp CSTR (INT (RND * (9) + 1 ))NextKey1 = cbyte (mid (keytemp, 11, 1) Mid (keytemp, 27, 1 ))For I = 1 to Len (strsource)Strchar = mid (strsource, I, 1) 'removes a character from the string to be encryptedBlowdata = ASCB (midb (strchar, 1, 1) X
CopyCode The Code is as follows: Function aspurldecode (strvalue)
Dim varary, varelement, objstream, lngloop, flag
Strvalue = Replace (strvalue, "+ ","")
Varary = Split (strvalue, "% ")
Flag = varary (0) = ""
Set objstream = server. Createobject ("ADODB. Stream ")
With objstream
. Type = 2
. Mode = 3
. Open
For each varelement in varary
If varelement If Len (varelement)> = 2 and flag then
. Writetext chrb (CINT (" H" left (varelement, 2 )))
For lnglo
I. Basic Questions
Generally, the file write path is incorrect, or the directory permission is not properly set (you must set everyone or the Guest user iis_iusrs to full access)
Ii. Special Problems
1. error message:
ADODB. Stream error '800a0bbc'
Failed to Write File.
/Code/zhaosheng1/admin/upload_5xsoft.inc, row 175
2. Problem Solving:
Microsoft VBScript runtime error '800a0005 'Image Upload upload_5xsoft.inc
This is in use"ASP Component-less upload"Error.
ASP local test is completely norma
Copy Code code as follows:
Function Aspurldecode (strvalue)
Dim varary, Varelement, objstream, Lngloop, Flag
strvalue = Replace (strvalue, "+", "")
Varary = Split (strvalue, "%")
Flag = varary (0) = ""
Set objstream = Server.CreateObject ("ADODB. Stream ")
With Objstream
. Type = 2
. Mode = 3
. Open
For each varelement in Varary
If varelement If Len (varelement) >= 2 and Flag Then
. WRITETEXT ChrB (CInt ("h" Left (Varelement, 2))
Fo
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.