Why do many web developers use server-side scripting languages like PHP when everything they're trying to do can be done with JavaScript?

Where the best place is to perform a given operation (client javascript vs. server side PHP) depends a ton on the type of operation so there is no generic answer to that question. Some reasons to perform things client-side: • Better performance (faster responsiveness to user events, fewer server-roundtrips, more logic handled client-side, etc...) • Lower load on your servers • Faster visual feedback • Dynamic page performance without page reloads • Interactive application Some reasons to perform things server-side: • Better performance (bigger computers, faster internet pipe, faster connection to data sources, etc...) • Faster access to server-side data • Better management of bandwidth to client • Easier to secure and control access to data server-side than client-side • Fewer cross -browser issues • Smaller pages for browser to download • Same server logic can be exposed via XML or a JSON-type API As you can see there are tradeoffs in both directions so where the ideal place is to ... more.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions