Web Wizards

Locked
corpse
Posts: 678
Joined: Sun Jan 12, 2003 8:00 am

Web Wizards

Post 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?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post 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.
Underpants?
Posts: 4755
Joined: Mon Oct 22, 2001 7:00 am

Post 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.
Underpants?
Posts: 4755
Joined: Mon Oct 22, 2001 7:00 am

Post 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
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

*whispers* JavaScript, not Java.
Locked