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)






January 8th, 2008 at 9:51 pm
very interesting.
i’m adding in RSS Reader
January 8th, 2008 at 9:59 pm
thanks bro!
November 25th, 2008 at 9:28 pm
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…
April 11th, 2009 at 3:47 pm
so client-side using javascript and server-side use php, is it true?
June 10th, 2009 at 1:59 pm
Thanks a lot………………….