Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i need to a program calculator almost advanced?
in php?
Posted
Comments
Christian Graus 1-Jan-13 15:03pm    
Well, get to it. This is not a programming question, it reads like a request from a lazy person. What have you tried ?

1 solution

If you use PHP for its major purpose, for Web programming, it will be impractical. Due to performance problems. The calculator already exists, you don't have to do anything. It's called "JavaScript". Just add some text area and call JavaScript eval function on its content?

Example? Please see how I use it: http://sakryukov.org/freeware/calculator/[^].

—SA
 
Share this answer
 
Comments
Christian Graus 1-Jan-13 15:19pm    
I suspect he means a calculator, with buttons. By advanced, I assume he means scientific.
Sergey Alexandrovich Kryukov 1-Jan-13 18:38pm    
Well, that's likely, but I don't care. To me, a calculator with button is complete trash, makes no practical sense. It only makes sense in a small cheapest device. Training of developers? More of a waste of time...
—SA
Christian Graus 1-Jan-13 18:40pm    
Creating a calculator app is a pretty valid way for someone to learn about things like maintaining state, variable scope, basic maths operations, etc. I always suggest it as a starting project ( although not in a web app, that part is odd )
Sergey Alexandrovich Kryukov 1-Jan-13 19:06pm    
I understand that, but I dislike the idea of such product, even for the study. You see, it develops inertia of thinking and reconciles a student with the idea that making useless projects is fine. Do you see my motivation?
—SA
Christian Graus 1-Jan-13 19:10pm    
No, not at all. I am frustrated at the number of people here who think that their 'learning' projects should also be commercially useful and probably paid for by someone. If you're learning, learning is the goal, for example, everyone should write a list class ( especially if they are learning C++ ), but everyone should use std::list. The point of writing one, is to know how they work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900