Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Server-side Scripting Guide

Server-side Scripting guide


ASP and PHP - server-side scripting

An HTML file can contain text, HTML tags, and scripts.

Server-side scripting is programming the server's behavior; this is called server-side scripting or server scripting.

Client-side scripting is programming the browser's behavior (see the JavaScriptintroductory tutorial).

Typically, when a browser requests an HTML file, the server returns the file; but if the file contains server-side scripts, those scripts are executed first before the HTML file is returned to the browser as plain HTML.


What can server scripts do?

Important reminder: Because scripts execute on the server, the browser can display server-side files even without supporting scripts!


ASP and PHP

At Runoob Tutorial, we demonstrate server-side scripting using Active Server Pages (ASP) and PHP: Hypertext Preprocessor (PHP).


ASP example

Writing text via ASP
How to write text via ASP.

Adding HTML to text
How to format text using HTML tags.


How to learn ASP or PHP?

Study ourcomplete ASP tutorial, or our complete PHP tutorial.