Recommended: The difference between isNull, isEmpty and empty strings in asp In ASP, we often use two parameters, isNull and isEmpty, which are used when we judge that a certain string is empty. For example, if a string is str1, we often use if isNull(str1) or isEmpty(str1) then to judge, or use if str1=// then to judge whether the string is empty. Sometimes we are very confused, isNull, isEmpty and empty words
Asp has passed for a while, let me talk about using asp fso to implement file read and write operations. Friends who need to learn can refer to it.
1.AtEndOfStream
This property indicates whether the end of the entire text file has been reached. Its value is TRUE or FALSE
2.CreateTextFile
Used to create a new text file
3. Parameters in OpenTextFile() method
What saucer wrote:
The ForWriting value is 2, indicating that a writable text file is opened.
To be 1, it means that a readable text file is opened
is 8, indicating that data is to be attached
True means that if there is no such file, a new one will be created.
This parameter can be selected as True or False, indicating whether the file is created when it does not exist
Example 1
Read the file:
Write a file:
Example 2
FSO creates the easiest access counter
This document can be introduced in include where counting and displaying counts.
But if it is a static page like html, you can use this simple counter through script scripts.
Then Counter.asp needs to be written like this
In the static html page that needs to be referenced, you can use the counter through the Script script:
Share: How to obtain the user's real IP address asp General programs have the command to obtain the user's IP address, but there are two types of websites we visit, one is an ordinary user like us, and the other is a user who uses a proxy IP to surf the Internet. I will introduce it below. The easiest way to get the user's IP address in asp is to use it, but if the user uses the proxy server IP address, it is wrong, but we can use the above results