Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

A server-side programming language is used to write code that runs on a server to process requests, work with data or other services, and help produce the response sent to a client. PHP, Python, Ruby, C#, and JavaScript running with Node.js are examples. “Server-side” describes where code runs and what it does—not a limitation that a language can run only on a server.

How server-side programming works

When someone visits a page, submits a form, or searches a site, the browser commonly sends an HTTP request to a web server. Server-side code can interpret that request, retrieve information from a database or another service, and decide what response to return. The response might be generated HTML, JSON or other data, or a static resource delivered unchanged. MDN’s introduction to server-side web programming describes this request-and-response role.

For example, a site might receive a request for a product page, look up the product details, combine them with an HTML template, and send the finished page to the browser. Another site might return JSON, which browser code then uses to update the page. The server-side code handles the request and determines or prepares the content; the browser displays it or uses the returned data.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What server-side code is responsible for

Depending on the application, server-side code may:

  • Choose or generate content for a particular request.
  • Validate information submitted in a form.
  • Read from or write to a database.
  • Handle user-related functions.
  • Return HTML, JSON, or another appropriate response.

Not every resource is generated when a request arrives. CSS files, JavaScript files, and images, for instance, may simply be delivered as static resources. “Server-side” therefore does not mean that every response is dynamically created.

Server-side vs. client-side programming

The distinction is mainly the execution environment and the work commonly performed there. Client-side code runs in the user’s browser and often controls page presentation and interaction. Server-side code runs in a server environment and commonly processes requests, accesses server resources, and selects or generates content. The browser and server can both contribute to one page: the server may return data, while browser code renders or updates the interface. MDN’s overview of the client-side and server-side distinction explains the different environments.

Languages and frameworks used on the server

Several languages can be used for server-side work. MDN lists PHP, Python, Ruby, C#, and JavaScript with Node.js as examples. A framework is different: it is a software toolkit built for a language or runtime, not a programming language itself.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Language or runtime Framework example
Python Django
JavaScript with Node.js Express
PHP Laravel
C# ASP.NET

These language and framework examples are identified in MDN’s server-side introduction. The examples do not establish that one option is universally best; a choice depends on the application, available runtime and integrations, the team’s skills, deployment environment, and support needs.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why JavaScript can run on both sides

JavaScript is not inherently restricted to the browser. It can run in a browser or in Node.js, a server-side runtime. The runtime determines which environment-specific APIs are available: browsers expose APIs for working with the page and DOM, while Node.js provides server-oriented capabilities such as HTTP server and file-system functionality. MDN’s Node.js overview describes this server environment.

So a project can use JavaScript in the browser for page behavior and JavaScript with Node.js on the server for request handling. The language is the same; the runtime and execution context differ.

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.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.