Hi, am starter in web programming but I like to do this. Actually I want to know more about server side and client side programming and what is the major difference between them?
Major difference between server side and client side programming
"Client-side" refers to what happens in the user's browser. This includes HTML, CSS, and JavaScript. These things are all handled and rendered in the user's browser and don't require a server to run. That's why you can actually open .html files right in your browser on your computer without any kind of web server. If you had a site that consisted entirely of HTML, CSS, and JavaScript, you could run it anywhere pretty much.
"Server-side" refers to what happens on the web server before being "served" (aka, sent) to the user's browser. These things include PHP, Python, Perl, the "code behind" in .NET websites, etc. Colloquially this can sometimes be referred to as what happens "behind the scenes" since you don't really see what the server is doing.
One thing that may be confusing to a newcomer is the server-side coding may produce client-side code. In other words, when a page loads and the server is doing its processing, in many instances it might send HTML content to the client, which then renders it in the browser. The client doesn't know that it was PHP doing it or .NET. It just gets HTML code back and renders what's given. Server-side code doesn't know about different browsers and which one you're using. The only way to "tell" is by some kind of data being sent at the time of the request, and the server-side code written to handle it.
A very broad rule of thumb to think about when it comes to server-side vs. client-side is: server-side happens first, client-side happens second.
If you have more specific questions feel free to ask!
EDIT: Just wanted to add that server-side programming usually requires some sort of set up to "process" the code. For example Apache is a very common web server that is used to process PHP files. IIS is a web server that's used to process ASP.NET websites. No server is required for client-side because everything happens in the browser.
Thanks for essential information, Its more helpful for me. But still am confused because when we searching on web browser our search request send to web server to return our search result page. Can you tell me from where our search result pages come?
The server generates them and sends them to your browser.
What you saying its not clarifying from your reply. As far as I feel you want to say, when we query on google search bar after that Google server generate the result page related to query and send to our browser. Am not sure about my guess that totally right.
In the most simple terms, the difference is where the code actually runs: server-side code runs on the web server, client-side code runs on the client, a.k.a. the browser. That client-side code gets sent to the browser by the server-side code.
Is there Its mandatory to use languages like javaScript in client side and Php for server side?
Nothing is "mandatory", but on the client side, JavaScript is far and away the most widely used and supported option. On the server side, your options are much greater, with PHP being just one of many, some of the most popular being: Ruby (on Rails), Python, Java (not JavaScript), JavaScript (in NodeJS), C#/.NET, ASP/.NET, Perl, etc....
OK, Its means I have multiple option for programming languages and depend on me which type of languages want to use in my code. Can you suggest me which one is best for me because am totally new in Php?
Well, you're on PHPBuilder ... which do you suppose we'll suggest?
I would actually suggest PHP, with Ruby or Python tied for 1st-and-a-half place
But it's really hard to know without knowing a lot about you and your situation....
Am totally confused from your reply. what you want to say? Can you give the easiest way to get rid from this issue?
PHP is (mainly used as) a server-side web programming language.
This forum is, in fact, all about PHP and related issues.
If you are going to ask what server-side programming language to use on this web forum, the obvious answer is: PHP. (However, there is nothing wrong with picking something else, but with no idea what you plan to do with it, there's no way any of us can really say which is better -- although they're all just tools, and a good craftsman can do a good job with any similar tool.)
If this is still not clear to you, then either there is some sort of language barrier we're dealing with here, or it's time for you to do some reading on software development with an emphasis on web development? (After all, you claim in your signature to be an "IT Analyst"?)
Thanks for suggesting me useful solution. It was just an amazing discussion with all of you.