Page 2 of 2
Posted: Mon Apr 10, 2006 5:59 pm
by alex.barylski
Nathaniel wrote:Hockey wrote:You suggest a calculator?
Thats probably harder than that a trivial upload script, forum or cms...

Nah. PHP has all of the "calculating" functions already. It would just be a matter of interpreting a string to run them. (It would require
some work.)
Of course, eval() could do it easiest, after str_replacing square root symbols, etc with the appropriate function names. But that's kinda cheap.
Well if you use built in calculator functions (not sure what your refering too, but anyways) sure it would be easy...but so easy it's pointless if you use
eval()
What I was getting at was implementing RPN (as most calculators do) would be a non-trivial task for a beginner...
What calculator functions are you talking about?
cos, sin, etc???
Cheers
Posted: Mon Apr 10, 2006 7:05 pm
by Nathaniel
As in, PHP has the +, -, /, x "operators" (correct word?). As opposed to having to assemble it from complete scratch. Although I have no clue how that would work.
Posted: Mon Apr 10, 2006 8:11 pm
by RobertGonzalez
Why not start with something that is going to involve a little bit of everything from a development perpective? Try building a listing system of some type. One that grabs information from a database and displays it in alternating color tabular style. Maybe set it up so that you can have a user login system, and when a user is logged in they can see some editing features (like delete or edit a row of information). Then, use your new skills to figure out how to let the users manipulate those certain pieces of information without porking the entire system.
Another suggestion is a Frequently Asked Questions manager complete with user/admin interfaces. These are very popular and quite fun to learn on. Heck, you might even be able to sell it later on, if it decent enough.

Posted: Tue Apr 11, 2006 11:20 pm
by alex.barylski
Nathaniel wrote:As in, PHP has the +, -, /, x "operators" (correct word?). As opposed to having to assemble it from complete scratch. Although I have no clue how that would work.
A CPU at it's lowest level has instructions which do just that (ADD, SUB, etc)...using logic gates AND, OR, XOR
Posted: Wed Apr 12, 2006 10:33 am
by Moocat
I find when you work with something you like it tends to go better.
My suggestion?
Build a "Kill monster" game.
Steps:
1) Player creates character (also account)
2) Player logs in
3) Player buys weapon/armor
4) Player can "search a dungeon" (fight a randomly generated monster)
5) Player can level up
That's it, and it can be done Model 1 very proceduraly if you want. That was my first PHP program, so I think it's doable.