Originally Posted by Bucephalus
I was just about to start a website in java, but it seems everyone is using php.... What's with that? Should I be switching over to PHP?
Is that better than Java for some reason?
This will be my first website. I have done a little java programming, but I do have some php books here. So, what to do? It's an e-commerce website.
Actually, not everyone is using PHP at all - there's never been a more vast array of server side languages used. PHP actually seems (to me) to be used a bit less than it was a few years ago, with a lot of new contenders coming up (Django, Rails, ASP.NET, Spring Roo, etc.)
PHP is arguably easier than Java, but is a less rigid language (loosely typed.) Pick what you're most comfortable with or you want to learn. The one advantage PHP does have is that if you're planning to host it somewhere, PHP support is much wider (almost universal) amongst most hosts, whereas you may have to shop around a bit more to find equivalent Java hosting.
Of course, Java applets are fading fast and for most intents and purposes all but dead - but that's completely different from server side.