servervariables

Read about servervariables, The latest news, videos, and discussion topics about servervariables from alibabacloud.com

Do a simple source of access statistics

Visit | Statistics We know that Request.ServerVariables ("Http_referer") can get the address of the source Web site, so we can do a small source access statistic from this data Create a new database sys_referer: if exists (SELECT * from

Collection of fine Code

Collection of fine Code 1. oncontextmenu= "window.event.return& #118alue =false" will completely screen the right mouse buttonno available for table2. deselect, prevent copying3. onpaste= "return false" is not allowed to paste4. oncopy= ' return

ASP Getting Started Tutorial-handling session Events

The session object has two events: the OnStart event and the OnEnd event. By scripting These two event procedures, you can perform the specified actions at the beginning and end of the session. When scripting code for these event procedures, you

15 very useful examples in ASP programming

Programming how to use ASP to determine the virtual physical path of your Web site Answer using the MapPath method The physical path to this virtual website is: 2. How do I know the browser used by the user? To use the Request object method

chat.asp--Master Frame Control file

Control Option Explicit Const admin= "Admin" Const admpass= "Admin" Dim roomname,kicklist,onliuser,chatdata,userdup,userid,noplace,username,i,chatpoin,password,admlevel Username=trim (Request.Form ("username")) Password=request.form

ASP instance: Instant Display current page browsing number

online.asp file The following are the referenced contents:Onlinetimeout=10 ' defines the time interval for online activity timeFunction Userip ()Getclientip = Request.ServerVariables ("http_x_forwarded_for") ' "," "'", "'", "" "", "" ","

ASP hidden download address and anti-theft code

The following are the contents of the reference: 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

ASP common code collation (recommended)

' Determine if the file name is legitimateFunction Isfilename (Afilename)Dim Serrorstr,inamelength,iIsfilename=trueSerrorstr=array ("/", "\", ":", "*", "?", "" "" "," "," | ")Inamelength=len (Afilename)If inamelengthIsfilename=falseElseFor I=0 to

ASP's two simple detection external submit functions

This article illustrates an ASP's two simple examples of detecting external submit functions, the first function is Chkpost (), which detects whether the user's current server name exists on the source page, and the second function is Postcheck (),

ASP hidden download address and anti-theft code

ASP hidden download address and anti-theft code The following are the referenced contents:Strfilename=strfileResponse.buffer=trueResponse.ClearSet s=server.createobject ("ADODB. Stream ")S.openS.type=1On Error Resume NextSet

The simplest ASP chat room (with source code)

Response.buffer=true ' Sets the output cache for displaying different pages. On Error Resume Next ' Ignores program error section If Request.ServerVariables ("request_method") = "Get" Then ' Determine how the customer requests the WEB page '---------

Asp. Summary of StreamReader objects in net

Asp.net|stream| object in front of me I introduced the file manipulation object in System.IO space, here I explain how to make a counter that applies to a particular page. Each counter requires a corresponding file to store the current amount of

20 very useful examples in ASP programming

20 very useful examples in programming ASP programming 1. How to use ASP to determine the virtual physical path of your website Answer: Using the MapPath method The physical path to this virtual website is: 2. How do I know the browser used by

Examples of error checking in ASP (especially for beginners)! Cheat, yesterday's wrong reason to find, not what you said, you should not eat dinner ...

Beginners | mistakes example of error checking in ASPThere is a program that is to add and remove elements from the application collection, as follows: the Application object the ASP application If Len (Request.Form ("Cmdadd")) Then ' use

Direct access to user's real IP address with ASP

IP address Private Function getip () Dim stripaddr If Request.ServerVariables ("http_x_forwarded_for") = "" OR InStr (Request.ServerVariables ("Http_x_forwarded_for"), " Unknown ") > 0 Then STRIPADDR = Request.ServerVariables

Upload function without component (English NT) 2

'----file name/handld_upload.asp Response.expires=0 Response.Buffer = TRUE Response.Clear Const image_size = "width=" "height=" "150" "" Dim Uploadrequest Set uploadrequest = Server.CreateObject ("Scripting.Dictionary") Dim ByteCount, Requestbin

ASP Learning: ASP page Development Skills

Tips | page ASP (Active Server page) provides strong technical support for making dynamic pages. In an ASP page, you can have multiple submit buttons to submit different data, perform different operations, and these all return to the same ASP page.

Some of the previously collected data---Upload file code without components (ii)

File Futils.inc ' True pureasp upload-enables save of uploaded text fields to the disk. ' c1997-1999 Antonin Foller, Pstruh Software, http://www.pstruh.cz ' The Scriptutilities Library ' The file enables HTTP upload to ASP without any components. '

Control user Login to website and display online user list

Control | show | online Here's what the Global.asa: Sub Application_OnStart ' Delete All saved sessions information, in case of a crash Set Objado = Server.CreateObject ("ADODB. Connection ") Sdatabasepath = Server.MapPath

[Original] 24 hours the same IP only play window source code

Original | source code | Bomb window ' Author: Arisisi' URL: http://www.alixixi.com' Description: Welcome to use source Code program, please keep this information.' 24 hours with 1IP only once' Direct input to the Web site does not play' Once you've

Total Pages: 18 1 .... 5 6 7 8 9 .... 18 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.