Click here to Skip to main content
11,702,130 members (61,935 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: PHP
i need to a program calculator almost advanced?
in php?
Posted 1-Jan-13 9:00am
arh66678
Comments
Christian Graus at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Comments
Christian Graus at 1-Jan-13 15:19pm
   
I suspect he means a calculator, with buttons. By advanced, I assume he means scientific.
Sergey Alexandrovich Kryukov at 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 at 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 at 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 at 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.
Sergey Alexandrovich Kryukov at 1-Jan-13 19:58pm
   
If am quite agree with you when you say about commercial project.

I'm talking about different thing: something which I consider useless. As to the good project for study, my idea is this: there is nothing better then a project that you do for yourself. Or your friends. Of course, it requires some level...

—SA

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

  Print Answers RSS
0 Maciej Los 395
1 Sergey Alexandrovich Kryukov 355
2 OriginalGriff 314
3 CHill60 145
4 Mika Wendelius 119
0 OriginalGriff 8,344
1 Sergey Alexandrovich Kryukov 7,507
2 CPallini 4,922
3 Maciej Los 4,371
4 Mika Wendelius 3,556


Advertise | Privacy | Mobile
Web01 | 2.8.150819.1 | Last Updated 1 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100