Page 1
Wink Notes
B.Tech CSE — 5th Semester
Web Technology
— Unit - 4 —
1. Server-Side Scripting Introduction
Unlike client-side scripts (JavaScript) which execute in the user's browser, server-side scripts execute on the web server before the response is sent back to the client.
1.1 Why Server-Side?
- Access to Databases: Client-side code cannot securely connect to a SQL database. Server-side code does.
- Security: The source code of a server-side script is never seen by the user. Only the resulting HTML/JSON is sent.
- File System Access: Reading/writing files on the server.
1.2 Common Technologies
Historically: PHP, Java (Servlets/JSP), Python (Django), Ruby on Rails.
Modern era: Node.js (JavaScript on the server), Go, Python (FastAPI).