XML part
Copy Code code as follows:
www.gg114chn.com
gg.114chn.com
www.114chn.com
www.114.com
What is the contact number of 2, China 114 Yellow Pages?
0775-4320568
0775-4553709
0775-4563709
114
10000
380463801
ASP is an abbreviation for Active Server page, meaning "dynamic servers pages." ASP is an application developed by Microsoft to replace the CGI script program, it can interact with database and other programs, it is a simple and convenient
Directly start to build ASP server, we work together.
Web service extensions, other than the 12th item, are allowed.
Open Internet Information Services (IIS) Manager
Click the properties of the default Web site
Click Home Directory
The server object provides access to methods and properties on the server, where most of the methods and properties are serviced as functionality of the utility. With the server object, you can start ActiveX object routines on the server and use the
For 301 redirects using the. htaccess file, see my other article, "301 redirect, change domain name to new domain name"
。
If the space does not support the. htaccess file, then we can also use the Php/asp code for 301 redirects.
In order to update
The advantages of using the acquisition program are: no maintenance site, because the data acquisition program from other sites, it will be updated with the site, you can save server resources, general acquisition program on several files, all Web
Collection Start
The first step is to analyze the pages to be collected.
Use the browser to open the page to be collected (such as: http://sports.sina.com.cn/k/2008-09-15/04593948756.shtml, you can other pages), open, click the right button, check
XMLHTTP component Contract in ASPWrite a thief function, pay attention to the Red Code section, the other add it yourself!Function Posthttppagefrom (Httpurl,stra,fromurl)Dim HttpSet http=server.createobject ("MSXML2. XMLHTTP ")Http.open "POST",
Although many WEB sites using ASP do not use components at all, in this article it is assumed that the ASP is a bridge between Internet clients and components.
Partitioning services between ASP and components
ASP is most commonly used to create
"Upload vulnerability spoofing Technology"
Many programs on the network have uploaded loopholes, such as I fly the whole station program, dynamic shopping mall, Autumn Leaf Mall, Hui Letter News system. This article mainly explains the invasion of
Today in the debugger, need to use and OR, if not mastering the skills output of the structure and we think that the gap is a bit large, here to share, I hope you will support the cloud Habitat community
Can and and or are not used concurrently in
Sub WriteData ()
Dim reccnt,i
Dim Fieldname1,fieldname2,fieldname3
Dim Conn
Dim S Qlstr,connstr
connstr= "provider=sqloledb.1;initial catalog=mydatabase;data source=myhon;user id=sa;password=" br> set Conn=server.createobject
The code is as follows
Copy Code
' The following is a batch build programIf Request ("type") = "Update" then%>Set Ru=server.createobject ("Adodb.recordset")Sql= "SELECT * from news where ID >=" &request ("b_id") & "and ID Ru.open
Tip 7: Encapsulate code in a COM object
If you have a lot of VBScript or JScript, you can often move your code to a compiled COM object, which can improve performance. The compiled code usually runs faster than the interpreted code. Compiled COM
Many ASP programmers have run database queries and then display the query results in HTML form
Go through it. That's what we usually do:
' Createconnection/recordset
' Populatedataintorecordsetobject
%>
...
Loop%>
If the query results are
Create a new "Serv-u" FTP server, in the ASP to modify the specified account password, wrote an ASP component to modify the "Serv-u" ftp password.
Start "Vb6.0", select the new ActiveX DLL, change engineering properties in the project name
Tip 22: Use Server.Transfer instead of Response.Redirect whenever possible
Tip 23: Use the back slash in the directory URL
Tip 24: Avoid using server variables
Tip 25: Upgrade to the latest and most outstanding
Tip 26: Optimize your WEB server
Tip 27
' An ASP file upload component to the file uploaded to the server before to determine whether the file size exceeds the specified size, this example is Upload_5xsoft file upload components Oh, file.filesize>1000000 can limit the number of K file.
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.