|
Question 1: To learn ASP, you need to know what IIS is, what is IIS? IIS is the abbreviation for Internet Information Server, which is a Web server that is pushed by Microsoft Corporation. IIS is not a programming language, it is just an "environment", an environment that allows the ASP language to run. So, how do I install and configure the IIS environment? If you are using the window2000 server version, it has been brought to IIS without installation. If you are using window98, you need to install PWS and if you are using window2000 or WINDOWXP, install IIS. The installation program for PWS can be found in the ADD_ON\PWS directory of the Win98 installation disk. Here we focus on IIS installation: 1. Open Control Panel 2. Select "Add/Remove Windows Components" in the control Panel to open the window 3, click "Add/Remove Windows Components" and wait a moment. The Windows Components Wizard window appears. Tick "Select Internet Information Services (IIS)" from the 4, in the Windows Components Wizard, click Next. Start the installation to configure our server IIS. 5, wait for the progress bar to run to the end, finally copy the file is complete, the configuration server will also end accordingly. Next, we'll learn how to configure IIS 1, first, set up a folder on your computer to store the ASP files. If you create a folder in the E: Disk: myasp 2, then, from the Start menu, Programs-Accessories-open Notepad. In the inside,:<%=now%>. 3, then save the file to the E:\myasp\ folder and name it time.asp 4, a very simple ASP file is OK, what do we do next? "Debug", of course. How to debug? If you are using "Server Edition", set up a "virtual site" to debug, if you use window2000 Pro or XP, please create a "virtual directory" to debug. So how do you create a virtual directory? 1. From the "Control Panel", open "Administrative Tools", select "Internet Service Manager" from
2. In the popup window, right click "New"-"virtual directory". 3, according to the "Virtual Directory Creation Wizard", fill in "Virtual directory alias" (such as myasp) 4. Enter the directory path where the content is located. Please browse and specify the new folder you just created. (e.g. E:\myasp) 5, in "Access rights", be sure to "read" and "Run Script" check, of course, you can also select "Write" and "browse". Finally click "Finish". 6. Right-click on the newly created "virtual directory" (myasp) and pop-up menu select "Properties" to open its "properties". 7, select "Configure" on the "Virtual directory Panel" option, open it, select "Application Debugging" this panel, and select "Enable ASP server-side script debugging" this option. This option is selected and there is an error when debugging. 8. Also select "Document" in the "Configuration" panel, delete the original document, add "index.asp" Document and "index.htm" or "index.html" document. Then make sure to exit. Here, IIS is configured. To view the results, right-click on the "time.asp" file in the "virtual directory" and select Browse. If configured correctly, the current date and time are displayed. Question 2: You can Issue 3: Use ports to differentiate. Question 4: You are right, but there is no actual online space, and now the settings are no big deal. Issue 5: The system is given directly, does not need to set the Question 6: only 5. 0 |
|