- Uniformity. All calculations will always be performed by the web server in the same exact way – irrespective of the user’s computer.
- Speed. Since all calculations are performed on the web server, the user’s computer doesn’t need to do any number crunching.
- Protection. All of the formulas, tables, and magical incantations used to generate the calculations are kept only on the web server.
But, PHP isn’t without its downsides:
- A pure PHP calculator would require the user to send the web server the entire page and wait for a whole new page to load. Every calculation would take a full second or more using a pure PHP calculator.
- When PHP is used to perform handle all calculations, there is more of a strain on the web server itself.
Next up, AJAX!
- Can’t we all just get along? [↩]
- A second might not seem like a long time – but it is when you’re using a computer. I’d bet that if these calculators took 1 second for everything (such as finding an occupational code or work restriction) no one would use them. [↩]
3 Comments »
Leave a comment
You must be logged in to post a comment.