1. What is Virtual Server? Why it is used?

On the Internet, a virtual server is a server (computer and various server programs) at someone else's location that is shared by multiple Web site owners so that each owner can use and administer it as though they had complete control of the server. Some Internet service providers (ISPs) offer a virtual server service instead of, or in addition to, virtual hosting. Using a virtual server, a company or individual with a Web site can not only have their own domain name and IP address, but can administer their own file directories, add e-mail accounts and address assignments, assign multiple domain names that resolve to a basic domain name without involvement from the ISP, manage their own logs and statistics analysis, and maintain passwords. Users of a virtual server, however, do not have to manage the hardware aspects of running a server and effectively share the cost of expensive line connections to the Internet. Actually, I use Virtual Server for many of the same tasks that you already described. 1. Servicing applications on older platforms 2. Regression test against older platforms 3. Compatibility test of present against older platforms 4. Functional/Stress test of current platform/applications I treat Virtual Machine as a quick way to get back to a certain OS or a certain saved state, which can be persisted/copied onto any other machine. Thus, my automation focuses on making save/restore of state as easy as possible. From what I understand of VMWare snapshot, I believe the only "issue" with what Virtual Server does is that the VM transitions into and out of a "Saved VM" state, and you cannot interact with the VM in the "saved" state. But this process is pretty quick and you can copy the state around, so I do not see any problems. Disk space is cheap, so I just keep multiple VHDs, each with a different OS and service pack level, and I have my own custom VHD save/restore mechanism so that users can quickly find, use, and also share their VHDs from a centralized bank of images. 2. Short note : Virtual server configuration(apache)

3. Short note on Servlet(Servlet basics)

A servlet is a Java programming language class used to extend the capabilities of servers that host applications accessed via a request-response programming model. Although servlets can respond to any type of request, they are commonly used to extend

such programs can be implemented with the Java programming language. a request in a form on a Web HTML page that results in a Java servlet getting called would call a URL that looks like this: 4.servlet. such as doGet and doPost. The HttpServlet class provides methods. each user request is invoked as a thread in a single daemon process. How can we configure IP in multiple subdomains? Answer: 6. Rather than causing a separate program process to be created. Instead of a URL that designates the name of a CGI application (in a "cgi-bin" subdirectory). Java applets. which defines life-cycle methods. All servlets must implement the Servlet interface. Typically. for handling HTTP-specific services. Answer: Page 32 of JSP Book. with a Java running in the server. you can use or extend the GenericServlet class provided with the Java Servlet API. However. When implementing a generic service.the applications hosted by Web servers. Some programs. usually intended for running on a client. For such applications. Java Servlet technology defines HTTP-specific servlet classes. How can we configure multiple websites with multiple domain names in an apache server? . need to be on the server. a small program that is sent as a separate file along with a Web (HTML) page. Problems with Servlet. often those that access databases based on user input. The term was coined in the context of the Java applet.servlet and javax. A servlet is a small program that runs on a server. The advantage of a Java servlet on servers with lots of traffic is that they can execute more quickly than CGI applications. can result in such services as performing a calculation for a user or positioning an image based on user interaction. these have been implemented using a Common Gateway Interface (CGI) application. meaning that the amount of system overhead for each request is slight. The javax.http packages provide interfaces and classes for writing servlets. 5.

ini PHP -> php. Short note on HTTP(HTTP basics) Answer: 12. Absolute path Answer: Absolute Path: Absolute path is something that independent or free from any relationship. Apache web server. Answer: Page 20 of JSP Book. How each individual of WAMP server work? Answer: 10. HTTP protocol. Know about : Apache -> http. Relative Path: Relative path points to a file/directory in relation to the present file/directory. When we use absolute URL. If two URL is identical.config MySQL -> mysql. HTTP request/respond model. Relative URL are ***** than absolute URL. Relative URLs are preferable for web maintenance.Answer: 7. 14. What is CGI? What are the most popular languages for CGI programming? . 8.ini Answer: 11. Answer: 13. Answer: 9. we point directly to a file in internet. they points to the same file. Short note : Relative path.

 Controller ± Request processing.  Model ± Business logic & data. Java etc. Server Side Programming: Client Side Programming: 17. and order . Server side programming Server side is based on server end. As a developer we can¶t impose specific environment or browser client side. In client side language user can use HTML. Python. we commonly classify the parts of the application as business logic. product. frameworks & libraries will be used. it is selected by user. such as customer. JavaScript. presentation. user. We can decide which platforms. What are the advantages of scripting languages over traditional CGI languages for server side programming? Answer: 16. and request processing. programming languages. Business logic is the term used for the manipulation of an application's data.Answer: 15.  View ± Presentation logic. Client side VS. Client side scripting has some limitation Server side scripting doesn¶t have any with browser. OS. and the Controller. The key point of using MVC is to separate logic into three distinct units: the Model. Client side scripting is possible to be Server side scripting can¶t be blocked by the blocked. Short note : MVC(Model View Controller) -> just basic Answer: MVC was first described by Xerox in a number of papers published in the late 1980s. the View. Any programming language can be used to implement various web applications in PHP. browser limitations. In a server application. Server side programming OR short note: Server side programming & Client side programming (in relation to World Wide Web?) Answer: Client side programming Client side is the user end of the experience.

and size. The server then forgets this transaction ever happened. the View to the presentation. What you know about ³state management´ or ³Session Tracking Explained´? Answer: Keeping track of which requests come from the same user isn't as easy as it may look. This is fine as long as you're dealing with static files. 18. Presentation refers to how the application data is displayed to the user. the information can be sent to the browser in one of three ways:  As a cookie  Embedded as hidden fields in an HTML form  Encoded in the URLs in the response body. The identifier is then used to locate the state information saved on the server. So when the same browser sends a new request.information. What this means is that the browser sends a request for a web resource. the web server processes the request and returns a response. the web server has no idea that this request is related to the previous one. font. The server can either return all information related to the current user (the client state) with each response and let the browser send it back as part of the next request. request processing is what ties the business logic and presentation parts together. and the Controller to the request processing. or it can save the state somewhere on the server and send back only an identifier that the browser returns with the next request. request-response protocol. for example. And finally. There are two ways to solve this problem. . In both cases. In MVC terms. typically as links to other application pages (this is known as URL rewriting) Figure bellow outlines these methods. position. HTTP is a stateless. but it's a problem in an interactive web application. the Model corresponds to business logic and data. and they have both been used extensively for web applications with a variety of server-side technologies.

it checks its "cookie jar" and includes all cookies it has received from the same server (that has not yet expired) in the request headers.Figure: Client state information transportation methods A cookie is a name/value pair that the server passes to the browser in a response header. When the browser sends a request to a server. In addition. Using cookies is the easiest way to deal with the state issue. The browser stores the cookie for the time specified by the cookie's expiration time attribute. a user may . Cookies used for state management don't have an expiration time and expire as soon as the user closes the browser. but some browsers don't support cookies.

the browser returns the information to the server as regular HTTP parameters when the form is submitted. A session starts when the browser makes the first request for a JSP page in a particular application. No matter which mechanism is used. because there's no permanent connection between the browser and the server. Hence. Sending all state information back and forth between the browser and server isn't efficient. but all of them support the cookie and URL rewriting techniques. the server can't associate the new request with the previous session. all requests from a browser that contains the same identifier (session ID) belong to the same session. and therefore creates a new session. the specification allows a container to use the session mechanism built into the Secure Socket Layer (SSL). all session data associated with the previous session remains on the server until the session times out. When the state information is encoded in URLs. Make connection between PHP to database. it's returned to the server as part of the request URL path. Note that there's no way for the server to tell if the user closes the browser. for instance when the user clicks on an encoded link. we can't rely on cookies alone.(just syntax) Answer: 20. SSL-based session tracking is currently not supported by any of the major servlet containers. or the encoded URLs are no longer available. This is called session tracking.2 Information saved in the session scope is available to all pages requested by the same browser during the lifetime of a session. In addition. The application can explicitly end the session (for instance when the user logs out or completes a transaction). closing the browser usually means losing the session ID. so most modern server-side technologies keep the information on the server and pass only an identifier between the browser and the server. the cookie expires. If hidden fields in an HTML form are used to send the state information to the browser. and no message is sent to the server when the browser disappears. However. JSP hides all details of cookie-based session tracking and supports the URL rewriting variety with a bit of help from the page author. the encryption technology used by HTTPS. session data is always available to JSP pages through the session scope. or the JSP container can end it after a period of user inactivity (the default value is typically 30 minutes after the last request). Still.disable cookies in a browser that does support them because of privacy concerns. So when the user opens a browser again. Syntax : str_replace() mysql_query() mysql_fetch_array() . 19. and the server keeps track of all information associated with the session.

Short note : Server Variable Answer: 24. Server configuration variable order. Why it is used? Where it is used? Answer: 23. Short note: Environment variable Session variable Post variable Make the serial about which come first. Answer: 26. Directory Structure Tree. Short note : Application Program Interface(API) Answer: 29. Answer: 22. GET & POST method. Answer: 27. Short note : Domain(all about domain) Answer: 28. Output buffering. Short note : Variable Ordering Answer: 25. From HTML : .mysql_fetch_object() Answer: 21.

What are the advantages of Table based website design instead of Frame based design and vice-versa? Answer: 31.rewriting . What is mean by Internet merchant banking? Answer: 32.Anchor Order list Listed item Table Answer: 30. What are the common mechanisms used for session tracking? Answer: Cookies SSL sessions URL.

Sign up to vote on this title
UsefulNot useful