Posted on Monday, 10th December 2007 by tutorials007

Difference between client side and server side.

Server side
Server side script are processed at server after server get request for a PHP document.
After request for an PHP document was sent, server is processing PHP code and it generates HTML code that is sent to a client.
This means that page which client sees doesn’t exist anywhere on the server in such form.


Client side
Main an most used language of client side group is JavaScript.
Code written in Javascript is often included in an basic HTML code and it’s executed at the client explorer.
This kind of code is visible to everybody.

Let me show you examples:

Client side

<script language=”JavaScript”>

var v = new Date()

document.write(v.getHours())

document.write(”:”)

document.write(v.getMinutes())

document.write(”:”)

document.write(v.getSeconds())

</script>

and

Server side

<?

$time= date(”H:i:s”);

echo $time;

?>

During web development, attention is paid to both sides. How will the web design appear to the client, what benefits will server reap from the web hosting etc etc. Through search engine optimization, work is done on the advertising of the website.

Posted in Archive | Comments (5)



5 Responses to “Difference between server side and client side”

  1. music Says:

    very interesting.
    i’m adding in RSS Reader

  2. tutorials007 Says:

    thanks bro!

  3. kia Says:

    hi everyone!
    honestly im still confused about the difference btw server-side and client server.
    i red many tutorials but still nothing, what i end up undrestanding is that,in the server-side (php) the code is not visible like in the html case, and the client server the code is visible to anyone.:(
    i m just lost…
    any help? for more details….i will be so thanksful…

  4. popeto.NS Says:

    so client-side using javascript and server-side use php, is it true?

  5. shaveen Says:

    Thanks a lot………………….

Leave a Reply