- Year not given · 2.5 marks
Short note: Server side programming
Short answer
Server-side programming runs scripts on the web server to create dynamic content in response to requests. The browser receives only generated HTML, while the server handles logic, database access, and sessions, hiding source code but using server resources per request.
Write a short note on server side programming.
Server-side programming is the writing of programs that run on a web server and create web content dynamically in response to client requests. The browser never sees the program, only the generated output (usually HTML, JSON or XML).
How it works
- The browser sends an HTTP request (GET or POST).
- The web server passes the request to a server-side program/interpreter (PHP, JSP, ASP.NET, Node.js, Python).
- The program reads input, applies logic, may query a database, and builds the response.
- The server returns the response to the browser.
Browser -> Web server -> Script -> Database
Browser <- HTML <------- Script <-----+
Uses
User authentication and sessions, processing forms, database-driven pages, shopping carts, file upload, sending email.
Advantages
- Hides source code and business logic; more secure.
- Can access databases and server files.
- Works on any browser, since only HTML is sent.
- Central updates and easy maintenance.
Disadvantages
Each request needs a round trip and uses server resources, so heavy load needs scalable design. Examples: PHP, Java Servlets/JSP, ASP.NET, Python Django, Node.js.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Server-side programming and Java Servlet · Web Technology, chapter 3
- Client-side versus server-side scripting · Web Technology, chapter 3 · asked 3×
- Server side languages and multi-tier architecture · Web Technology, chapter 3