Recommended Free Tools
A server-side programming language is used to write code that runs on a web server. When a browser or another client sends a request, that code can process it, work with data or other services, and return a suitable response. PHP, Python, Ruby, C#, and JavaScript running in Node.js are examples; “server-side” describes where code runs, not a language’s exclusive purpose.
How server-side programming works
A browser commonly sends an HTTP request when someone opens a page, submits a form, or searches a site. The server receives that request, and server-side code can decide what to do next: interpret the request, retrieve information, apply application logic, and produce a response. MDN explains this request-and-response pattern in its introduction to server-side web programming.
As an Amazon Associate I earn from qualifying purchases.
For a dynamic page, the server might combine data with an HTML template and send the resulting HTML to the browser. It may instead return data such as JSON or XML for browser-side code to display. Other resources, including images, CSS, and JavaScript files, can be served as static files without being generated anew for each request.
What server-side code is used for
Server-side code commonly handles work that needs access to server resources or application data. Depending on the application, it can:
- Choose content or an action based on the incoming request.
- Validate information submitted by a user.
- Read from or write to a database.
- Handle user-related functions, such as account workflows.
- Generate a response or select existing content to return.
Not every server response is dynamically generated at request time. A server can return prebuilt output or unchanged static files; the term “server-side” identifies the execution environment, not a guarantee that every response is created on demand.
Server-side versus client-side programming
The distinction is mainly about execution context and typical responsibilities. Client-side code runs in the client environment—often a web browser—and commonly controls page presentation and interaction. Server-side code runs in the server’s operating-system and runtime environment, where it commonly processes requests, works with data, and determines what response to send. MDN outlines this distinction in its client-server overview.
Rank #2
| Aspect | Client-side | Server-side |
|---|---|---|
| Where it runs | Usually in the browser | On a server, within its runtime environment |
| Typical role | Page presentation and interaction | Request processing, data access, and choosing or generating responses |
| Common output or effect | Updates the page or responds to user interaction | Returns HTML, data, or another resource to the client |
Examples of server-side languages and frameworks
MDN lists PHP, Python, Ruby, C#, and JavaScript with Node.js as examples of languages used for server-side web programming. Frameworks are different: they provide structures and tools for building applications in a language or runtime.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Clear out junk files and repair common Windows errors3Scan for outdated or missing drivers - takes under a minute| Language or runtime example | Framework example |
|---|---|
| Python | Django |
| JavaScript with Node.js | Express |
| PHP | Laravel |
| C# | ASP.NET |
These are examples, not a ranking. The sources do not establish one language as best or fastest. For a specific project, relevant decision factors include the application’s needs, available runtime and frameworks, team experience, integrations, deployment environment, and ongoing support.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Why JavaScript can run on both sides
JavaScript is not limited to the browser. It can run in a browser or on a server when hosted by a suitable runtime. Browsers provide APIs for interacting with a webpage and its Document Object Model (DOM). Node.js provides server-oriented capabilities, including HTTP-server and file-system functionality, rather than the browser’s DOM APIs. The language is JavaScript in both cases; the runtime and available APIs differ. See MDN’s server-side introduction for the language examples and MDN’s overview of JavaScript technologies for the distinction between environments.
Quick Recap
Best Value
What “server-side” does—and does not—mean
- It means the code executes in a server environment as part of handling work for a client or application.
- It does not mean a language can only run on a server; JavaScript demonstrates that one language can run in different environments.
- It does not mean every response is dynamically created for each request; servers also deliver static files and may serve prebuilt output.
- It is not the same as a framework name: Django, Express, Laravel, and ASP.NET are frameworks, while Python, JavaScript, PHP, and C# are language examples.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




