4

I'm building a website for my friend's startup. I'm currently building it on PHP, MySQL, Apache. Everything is going pretty smooth till now, but one of my friend recommends i move to a Java framework because that'd be better when the site becomes bigger. I don't have any Java Knowledge and I have adequate knowledge of PHP but I'm a fast learner

Should i continue with PHP (can PHP be used for big sites?) or should i move to a Java Framework? Any suggestions please.

5
  • I'll answer this question with a question. Do you like Ford or Chevy? Commented Oct 27, 2010 at 5:16
  • I don't know the difference between them but I'd say I prefer apple over windows. If that answers your question? Commented Oct 27, 2010 at 5:18
  • I'm a Java developer, but I second the answer below by @Fosco. But, it also depends on what kind of "big site" you are building. Commented Oct 27, 2010 at 5:26
  • E-commerce, Networking, Lot of money transactions. Commented Oct 27, 2010 at 5:29
  • 1
    Some advice: don't get ahead of yourself. With a startup the main thing is to get a presence out there first and then incremental updates from there. Plan to have a big website, but leave the problems of a big website until you are one. If you're lucky enough to grow and have those problems, you can sort them out then. Commented Oct 27, 2010 at 5:48

7 Answers 7

6

PHP can be used for big sites. Take a look at Facebook. End of story...

Sign up to request clarification or add additional context in comments.

7 Comments

Can it handle e-commerce and concurrency issues?
Did I mention Facebook?... Yes, it is very scalable.
Magento is a well built e-commerce system in PHP.
@Suss Of course. Those are features you build, not in-grown functions of any given programming language.
Yes can handle e-commerce and concurrency issues. It has it's own API for this purpose.
|
3

When someone says something like that, you need to have them justify what they are saying. PHP is scalable and versatile. Java has it's strengths and weaknesses too, just like any other programming language.

Since you are a novice in PHP, you probably won't reuse much of the code that you are using to build the initial site. I know you plan to, but the likelyhood that you will is very slim. Go with what you know.

PHP has been used by a plethora of sites. Google, Yahoo, Facebook, etc, etc all use some php for all their sites.

4 Comments

The thing is that i find PHP very easy so far, my friend says that database will have concurrency issues and stuff if i don't move to a framework.
The database and language you use to build the site are unrelated.
@Suss - language/framework choices and database concurrency issues are (mostly) apples and oranges. Both PHP and Java can be used to create very scalable and parallel sites, and both can be used to build a buggy mess.
Also, take a look at Zend. This is a PHP framework will help you in the long run on your "big site"
2

I think regardless of whether you go with PHP or a Java solution you're going to have to learn a new set of frameworks/libraries. If you don't have experience building anything more than a toy website (including any you've done through education) there will be plenty to learn from both paths.

Research some frameworks for both PHP and Java and make up your own mind based on what you've read. If it's such a long project you'll have plenty of time to familiarise yourself with whichever option you choose.

2 Comments

Just to throw another 2 cents in, I'd also recommend checking out a CMS framework like Drupal. Drupal has literally thousands stable plug-ins to do most of the stuff you'd want to achive: e-commerce, user accounts, authentication etc. It's code-base is really well thought out and if you know a bit of PHP you should find it fairly straightforward to jump in.
The idea behnd using existing frameworks is that almost everything you will need has been written by someone else already. Do not re-invent the wheel. So if you do some research you should be able to find a number of frameworks that support what you want to do. Your findings might help you decide which technology stack (Java, PHP, other) you use. There is - of course - a balancing act between changing what you want to do to fit the frameworks that exist, and what you are determined to do in your own way even if it means writing custom implementations.
2

Everything for a website is possible with php. No need to worry. we can make heavy sites with php in a easier way then java framework. You can use php frameworks like zend framework, codeigniter. They are scalable and easy to learn have lot of Components (libraries). And provides client services to bigger sites like twitter,amazon,yahoo etc.

:)

Comments

2

At least 1/3 of the top 20 sites on the web are using PHP in one way or another. Languages used by the rest include Python and Ruby. I don't see that any of them are using Java.

Comments

0

PHP is fine to use, ive made websites before using PHP...

Id suggest you stick with PHP but challenge yourself and expand your knowledge.

Comments

0

Yes. Big sites can be build using PHP. Examples are Digg.com and Facebook (which compiles to c++, but indeed).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.