My skills are limited, and I am sorry for any omissions. I hope you will criticize and correct them. Thank you for your patience.
Advanced ASP programming (1): Install the configuration server
The ASP scripting language is interpreted and run in IIS or PWS on the server, and can dynamically generate common HTML webpages, which are then transmitted to the client for browsing. If we want to debug on the local machine, our personal computer must have the server function.
Don't worry about the word "server": My sub-configuration is so poor in performance, isn't it possible. Rest assured! With a server, you just need to install more software and use it by yourself. There is no need to worry too much. What software should I install? We also saw that it was explained and run in "IIS or PWS". Obviously, you can install IIS or PWS.
What is IIS? IIS is short for Internet Information Server. It is a Web Server promoted by Microsoft. What about PWS? It looks a little old :) in WIN98 in the early days, of course, the operating system is still used, PWS (Personal Web Server) is the most common web Server: find the installation program of pws in the Add_on \ pws directory of the win98 installation disk. We recommend IIS and most of our friends use it. It is necessary.
1. Open the control panel.
2. Select "Add/delete Windows Components" in the control panel to open the window.
3. Click "Add/delete Windows Components" and wait a moment. The "Windows component wizard" window appears. Check "Select Internet Information Service (IIS )"
4. In the Windows component wizard, click "Next ". Start to install and configure IIS on our server.
5. Wait for the progress bar to run to the end... Finally, all the files are copied, And the configuration server ends accordingly.
6. How can I install the IIS server? How should we use it?
One of the functions of IIS is to explain and execute ASP Webpage code and display the result. Of course, for now, your machine acts as both a server and a client. This technology is transparent to you and you do not need to study its principles, in this way, you can understand the application.
Open your browser. for IE, NS, TE, or MYIE, enter the following in the address bar:
Http: // localhost. The current window appears, indicating that the WEB service is running!
7. That's all? You know what to do next? No clue, right. I tried my best to learn it now, but I saw an ASP page.
What should I do to debug my ASP Webpage?
First, you have to figure out where your ASP files will always be stored.
OK. Open "my computer" and create a "myasp" folder under the e drive. Put all ASP files here now.
8. Then, from the "Start" menu, "program"-"attachment"-open "Notepad ".
Enter
9. Save the file to the E: \ myasp \ folder and name it time. asp.
10. A simple ASP file is OK. What should we do next? One sentence: debugging.
How to debug? Or input the http: // localhost /? Obviously, this is not the case.
Now, is it difficult: How can I debug ASP files in a folder defined by myself?
Similarly, one sentence: Use a virtual directory. What is a virtual directory? How can we create a virtual directory?
(For example, to publish from a directory other than the main directory, you must create a virtual directory. The "virtual directory" is not included in the main directory, but is displayed in the client browser as it is in the main directory. The virtual directory has an alias for Web browsers to access this directory. The alias is usually shorter than the path name of the Directory, which is easier for users to enter. It is safer to use aliases because users do not know whether the file actually exists on the server, so they cannot use this information to modify the file .)
For beginners, ignore it and focus on practice. If you use more, you will naturally understand the meaning of this passage.
In general, the myasp folder is marked with a code. For example, if it is marked as myasp, you only need to enter http: // localhost/myasp/time during debugging. asp can be debugged.
11. How can I mark it? That is, how to create a virtual directory?
Open "Management Tools" from "Control Panel"
Select "Internet Service Manager"
12. In the pop-up window, right-click "new"-"virtual directory ".
13. The "virtual directory creation wizard" is displayed ".
Next, enter the alias myasp.
Next, go to directory: browse to E: \ myasp.
Keep up with this step and check "read" and "run script" for access permissions.
Click "finish ".
14. The result is as follows:
15, then the rest is to debug the time. asp.
In "Internet Information Service", right-click time. asp and select "Browse ".
16. The final page is as follows:
17. Look! This is simple. You have already started ASP.