Difference between server side and client side

PHP // 1,227 views Add comments

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


Free Web Hosting

<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;

<?

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

2 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!

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login