Most of you have probably heard of JavaScript or HTML. Both o these are simply text data that is rendered into both dynamic and static web pages. These scripts and markups are actually executed on the client that recieves the web page, not the server that hosts them. This system works pretty well until you attempt to acess high security files on the server. This means that the scripts must actually he run on the server, not the client. From the server, you can also obtain the ability to write to datbases and create files.
Thus came the birth of server side scripting, in which scripts are actually run on the server, and gain full privaleges. Currently, there are many different language options, including asp, asp.net, jsp, php, and much more. When creating these scripted pages, most actually have code embedded in the source HTML page that has been renamed to .php or .asp or such. The server, when called on, asks a script interpreter to parse through the page and execute all of the scripts. This produces an normal static HTML file with all of the scripts. With the proper settigs, it would be impossible for the client to view the original script source, while in JavaScript, code is easily visible.
The advantages of server side scripting are:
- Hide code from clients
- Gain file and database permissions
- Allow code to run even if the clients browser doesn't support scripts
No comments:
Post a Comment