Help PHP Beginner, the ASP code to PHP
Dim user
user= session ("user")
If user= "" Then
User=request.cookies ("User")
If user= "" Then
User=getuser ()
Response.Cookies ("user") =user
Response.Cookies ("User"). expires= #January 01, 2036#
End If
End
Limit an IP access only once, reproduced in the BACDE technology blog, now the ASP code to share to everyone:
'///////////////////////////////////////////////////// '// // '//function: One IP address is only allowed to access this page
To write an ASP code intercept string:
' Function name: SUBSTZFC
' function: truncated string, Chinese character one count two characters, English count a character
' Argument: str----Original string
' strlen----intercept length
' Return value:
Oncontextmenu= "Window.event.returnvalue=false" will completely shield the right mouse buttonno available for table2. deselect, prevent copying3. onpaste= "return false" no paste4. oncopy= "return false;" oncut= "return false;" Prevent replication5.
Copy Code code as follows:
Barcode Generation
Rem =================================================================
Rem = function: Ean13
Rem = Description: Generate EAN13 standard barcode, with instance (ASP code)
Rem = version: 1.0.0
access|server|sql| Comparison | tips
Background database:[Microsoft Access]And[Microsoft SQL Server]After the replacement, the ASP code should note some of the areas to be modified:
[One] connection problem (for example)[Microsoft Access]Constr =
Use components to protect your ASP code
Source:
Body:
Before we talked a lot about the security of Open database connection, now I put forward a kind of thinking
Use an ActiveX DLL to protect your code. (You don't have to worry about using
Repeat | Commit with several lines of ASP code to prevent a form from being submitted multiple times
Liao
In many cases it is necessary to prevent the same form from being submitted multiple times, and many people are implementing it in a more
Standard
Common source code formatting rules1.1 Development toolsIt is recommended that you use the Microsoft Visualinterdev to write your ASP code, write HTML code using Macromedia's Dreamweaver, or use development tools such as UltraEdit, ASPEdit20
Mention ASP Many people think it is a bunch of HTML scripts and are enclosed in some of the code and some JavaScript scripts, such as the collection of some code, such code, plus various types of annotations in different formats, looks like a word:
js| Statistics
Calculates how many lines of JS code and ASP code are in the current folder, and how many bytes the code has to count
There are sample code
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\\' \ from codeproject.com' \ Calculate code' \
Upload | data | database * GetChunk Syntax
Returns all or some of the contents of a large text or binary data Field object.
variable = field. GetChunk (Size)
return value
Returns the Variant type.
Parameters
The Size long integer expression equal
ASP Code conversion (garbled problem resolution)The conversion function is called before output to encode the conversion, can solve the garbled problem.Note, "& Parameters &" for the ASP connector, many of which are directly called database table
In fact, about the production of ASP. NET verification code is a lot of articles, but today still want to share with you, pro, you can synthesize a few examples, to write a Web-based verification code for their own site, probably also two
Author link
Hey, when I was reading a book in the restroom recently, I was directed to an article titled "adding superuser asp code".
I heard that wscript. shell can be used to escalate permissions. The advantage is that the success rate is
Help PHP Beginner, the ASP code to PHP
Dim user
user= session ("user")
If user= "" Then
User=request.cookies ("User")
If user= "" Then
User=getuser ()
Response.Cookies ("user") =user
Response.Cookies ("User"). expires= #January 01, 2036#
End If
End
From lake2
This stuff is gaining popularity. If you do not know it, read the article "add a Super User. ASP code.
The author also said, "the code is correct, but it rarely succeeds. It depends on luck." I tried it on webshell and failed. Remove the
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.