ASP programming introduction (1) Installation Configuration Server

xiaoxiao2021-03-06  39

Declinations: ASP programming introduction series of articles COPY Since http://www.cnbruce.com/blog/ section Run code Please go to this station for online test ASP programming Introduction (1): Installation Configuration Server given the ASP scripting language Interpret and run in server-side IIS or PWS, and dynamically generate normal HTML web pages, then transfer to this feature of the client for browsing. We have to debug on this unit, which requires our personal computer with the server's function. Don't see the word "server" is worried: My machine is configured so, the performance is so bad, is it unable to match. rest assured! With a server, it is a multi-load software, and it is not necessary to use it if you use it. What software is installed? Just now, we have also seen it is in "IIS or PWS," it is obvious, IIS or PWS can be. What is IIS? IIS is an abbreviation of Internet Information Server, which is a web server that Microsoft mains. What PWS? It seems to be a bit ancient :) Early in Win98, of course, the operating system that is still adopted, PWS (Personal Web Server) is the most easily obtained web server that is generally user-friendly: You can use the add_on / pws directory of Win98 installation disks. Find the PWS installer. And for IIS is recommended, most of the friends are using, it is necessary. 1. Open the control panel 2, select "Add / Remove Windows Components" in the Control Panel, open the window 3, click "Add / Remove Windows Components" and wait a moment. The Windows Component Wizard window appears. Tick ​​"Select Internet Information Service (IIS)" 4, click Next in the Windows Component Wizard. Start installing to configure our server IIS. 5, wait for the progress bar to run to the end. . . Finally, the copy file is all completed, and the configuration server is also ended. 6. The IIS server is installed for OK. What is the use of specific? How should I use it? First of all, one of the roles of IIS is to explain the execution ASP web page code and display the results. Of course, now, your machine is both a server side, and a client. This technology is transparent to you. You don't need to go to study it, so you can understand it. Open your browser, just IE, NS, TE or myie, as long as it is a browser that can browse the web, enter:

http: // localhost /

OK. The current window appears that it has been successful: Web services are running! 7, this, will it? What do you know below? Very good, right. Take advantage of the heart, now, I've seen an ASP page of people. Then I do myself, and debug your own ASP page? First, you have to think about your ASP file is always in a place. Open, open "My Computer", build a "Myasp" folder under the E disk, and all the ASP files will be placed here for the time being. 8, then, from the "Start" menu, "Program" - "Accessories" - Open "Notepad". Try inside

<% = NOW ()%>

9, then save the file into the E: / myaSP / folder, and name Time.asp10, a very simple ASP file is OK, what do we do below? One sentence: debugging. How to debug? Or just enter our http: // localhost /

? Obviously it is not. That time isn't it difficult to come: How do I debug my own ASP file in a folder I defined? Similarly, a sentence: uses a virtual directory. What is a virtual directory? How do you build a virtual directory? (Citing a paragraph: To be published from other directories other than the primary directory, you must create a virtual directory. The Virtual Directory is not included in the home directory, but is like a home directory when displaying to the client browser. The virtual directory has a "alias" for web browsers for accessing this directory. Alias ​​is usually shorter than the path of the directory, more convenient for user input. Use the alias to be safer, because the user does not know if the file is really existing on the server, So you can't use this information to modify the file.) Don't pay attention to your beginners, focus on practice, and you will naturally understand this paragraph. Generally, let me mark my Myasp folder with a code. For example, it is marked as MyASP. When I debug, just enter:

http: // localhost /

MyaSP / Time.asp can be debugged. 11, how to mark it? That is to build a virtual directory? Open Administrative Tools from "Control Panel" Select "Internet Service Manager" 12, right-click "New" in the pop-up window - "Virtual Directory". 13, pop up the Virtual Directory Create Wizard. Next, fill in an alias: MyASP. Next, the directory: Browse to E: / myasp. Keep up with one step, access to the permissions must be tick "Read" and "Run Scripts". Finally click "Finish". 14, the results are as follows: 15, then the rest is debugging the Time.asp. Right-click Time.asp inside "Internet Information Services" and select "Browse". 16, the final page is as follows: 17, see! It's so simple, you have already started with the ASP.

转载请注明原文地址:https://www.9cbs.com/read-70388.html

New Post(0)