There are n number of difference between client-side and server-side programming.
The below code is split into two entirely separate parts, the server side and the client side.
|
---------->
HTTP request
|
+--------------+ | +--------------+
| | | | |
| browser | | | web server |
| (JavaScript) | | | (PHP etc.) |
| | | | |
+--------------+ | +--------------+
|
client side | server side
|
<----------
HTML, CSS, JavaScript
|
In programming we have 2 sides that are HTTP requests and responses. Php is a server side programming language which will execute our code on server and the response is sent to the client where the HTML is interpreted and the JavaScript is executed. Once PHP has finished outputting the response, the script ends and nothing will happen on the server until a new HTTP request comes in.
By this it's clear the difference between client-side and server-side programming.
0 Comment(s)