• Register
Post tutorial Report RSS Difference between server side and client side coding

Website based coding, not games or anything like that.

Posted by on - Intermediate Website

Server Side Code


Server side is the code that resides at web server.
For every client request code is executed at server side and result is send to the client in simple HTML format.
Performance is lower than client side code due to server round trips.
Client cannot see the business logic though it is stored on server.

Client Side Code


Client side code is reside at client's browser itself. It is executed at
client side only. User can easily see the code by View - > Source option.
It is generally used in validation form like text field is empty or not, email address validation etc. It is faster than server side code.

Server side code is responsible to execute and provide
the executed code to the browser at the client side. The executed code
may be either in XML or Plain HTML. The executed code only have the
values or the results that are executed on the server. The clients
browser executes the HTML code and displays the result.

Where as the client side code executes at client side and displays the result in
its browser. It's the client side core consist of certain functions that
are to be executed on server then it places request to the server and
the server responses as the result in form of HTML.

Post comment Comments
booman
booman - - 3,651 comments

Most dynamic websites are using PHP and a database running in the server side code. This keeps a website fresh, always-changing and interactive.
Specially if the website is a service or selling a product.

Most client side code is going to be HTML, CSS, JQuery and Javascript to make the pages look pretty and compatible with all the stinking browsers.

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: