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?
- Dynamically edit, change, or add any content to a web page
- Respond to user requests or data submitted from HTML forms
- Access data or databases and return results to the browser
- Customize pages for different users
- Improve web page security so your page code cannot be viewed through the browser
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.