Server-side ScriptingGuide


ASP and PHP - Server-side Scripting

HTML files can contain text, HTML tags, and scripts.

Server-side scripting is programming the behavior of the server. This is called server-side scripting or server scripting.

Client-side scripting is programming the behavior of the browser. (SeeJavaScript Beginner Tutorial).

Usually, when a browser requests an HTML file, the server returns this file, but if the file contains server-side scripts, then before the HTML file is returned to the browser as pure HTML, the scripts in the HTML file are executed first.


What can server scripts do?

  • Dynamically edit, change, or add any content to web pages
  • Respond to user requests or data submitted by HTML forms
  • Access data or databases, and return results to the browser
  • Customize pages for different users
  • Improve web page security, so that your web page code cannot be viewed through the browser

Important note:Since the scripts are executed on the server, the browser can display server-side files without supporting scripts!


ASP and PHP

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


ASP Examples

Writing text with ASP
How to write text with ASP.

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


How to learn ASP or PHP?

Learn ourcomplete ASP tutorial, or ourcomplete PHP tutorial。

Other Extensions