Page 1 of 1
Web Wizards
Posted: Mon Nov 27, 2006 1:34 am
by corpse
Is PHP a usage that is to replace javascript? When making a web page do you use php instead of javascript or do you use both?
Posted: Mon Nov 27, 2006 8:39 am
by ^misantropia^
They both have their place in web design. PHP runs on the server and does useful things like querying databases. JavaScript runs on the client (that is, the browser) and can be used to modify pages on the fly without making a round-trip to the server.
Posted: Tue Nov 28, 2006 6:57 am
by Underpants?
Both languages can accomplish the same thing, but usually, Java is seen as the more 'robust,' and god damn i feel dirty using buzz-words like that. Basically it's a matter of choice and convenience which you choose, as with Assembly, C#, and so on. Code is code. Languages are chosen for memory useage, and application capabilities. Java is Object Orientated-centric whereas PHP is structured programming-centric.
Posted: Tue Nov 28, 2006 6:59 am
by Underpants?
Oh and there seems to be a lot less code bloat in php than in java, possibly because Java so covets teh memory
Posted: Tue Nov 28, 2006 10:35 am
by ^misantropia^
*whispers* JavaScript, not Java.