Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I going to build an Ecommerce web application for 10K Users. Now I don't know which is the best language between PHP vs JAVA?
Posted
Updated 27-Nov-14 1:23am
v3
Comments
Xiao Ling 1-Dec-14 1:15am    
You'd better choose the language you are familiar with. There's no best language. E.g. Facebook's built in PHP. Microsoft's built in ASP.NET and etc.

Hello,

First of all there are pros and cons about every language. There is no 'best' language for ecommerce application. It all depends of programmer skills, environment, funcionality you want to achieve and etc.

Second. I see no point to develop own ecommerce app unless you want to practice. There are many good scripts you can use for free. There are many plugins which you can download and customize ecommerce script.

Cheers.
 
Share this answer
 
Performance is probably not one of the factors. For a dynamic language, PHP actually performs pretty well; depending on the task, it might or might not beat other technologies. The application model simply is too different to compare it directly against Java or ASP.NET. Even if there is a measurable speed difference, it is not big, and it's probably linear, which means it can be solved by throwing more hardware at it. Also, the programming language itself is seldom the bottleneck - algorithms, database access, network bandwidth, and I/O in general are the usual culprits, unless you are writing somehing truly CPU-intensive.

Reasons for using ASP.NET or Java over PHP that are more likely include:

Platform integration. ASP.NET offers extensive integration with .NET and the underlying Windows OS.
General purposeness. PHP was designed specifically for the web, while .NET and Java are general-purpose platforms. Using Java or .NET, you can tack both desktop and web frontends onto the same shared code with little effort, while PHP isn't very suitable for writing desktop applications.
Code organization features. Java and .NET were designed for OOP from the start, while OOP in PHP is somewhat of an afterthought. PHP introduced namespaces very recently, and they are limited and clumsy compared to what .NET and Java have to offer. Enterprise-style programming usually relies heavily on OOP, which makes PHP the lesser candidate.
Another reason for the perceived effect is that PHP is free (as in beer) and ubiquitous - every cheap shared web hosting company has PHP in their standard package, but a .NET or Java server is going to cost you significantly more. Consequently, a huge mass of small websites uses PHP, not because it's the best tool for the job, but the only one at hand.

That's not to say PHP is unsuitable for large projects - it just doesn't go well with the 'enterprisey' kind of programming. Its strengths lie elsewhere, and if you can leverage them, you can just as easily build large-scale applications as you could with any other web technology.
 
Share this answer
 
Neither. You should be studying proper web development, not worrying about the language. Go to http://www.asp.net/[^] and look at the samples and tutorials.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900