1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP or Java?

Discussion in 'Programming' started by cinemagicllc, Dec 25, 2016.

  1. junaidshahid

    junaidshahid Greenhorn

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #21
    PHP is the best solution on the entire web.. you can enjoy best OOP in PHP.. even Fb is developed on PHP.. not on java..
     
    junaidshahid, Jan 21, 2017 IP
  2. AlexMGM

    AlexMGM Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #22
    PHP is a choice, just pick the right framework, like Yii2 or Lavavel
     
    AlexMGM, Jan 26, 2017 IP
  3. degreubiwa

    degreubiwa Banned

    Messages:
    479
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    55
    #23
    Websites of few large companies are built in Java who has deep pockets to hire professional Java programmers. For establishing budget friendly websites pup is much cheaper and can be combined with other enhancements.
     
    degreubiwa, Jan 29, 2017 IP
    sarahk likes this.
  4. yedort

    yedort Member

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    33
    #24
    You can't build a website with Java. I guess you're a beginner. Which language is easier? PHP. PHP is an easy-to-learn programming language but also good for experts.
     
    yedort, Mar 9, 2017 IP
  5. sarahk

    sarahk iTamer Staff

    Messages:
    28,494
    Likes Received:
    4,457
    Best Answers:
    123
    Trophy Points:
    665
    #25
    Yes, you can.
     
    sarahk, Mar 9, 2017 IP
  6. yedort

    yedort Member

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    33
    #26
    I meant it wasn't a practic way.
     
    yedort, Mar 9, 2017 IP
  7. NetStar

    NetStar Notable Member

    Messages:
    2,471
    Likes Received:
    541
    Best Answers:
    21
    Trophy Points:
    245
    #27
    No you said "You can't build a website with Java.". Which means NO. Both of your statements are incorrect. You can absolutely develop practically for the web in Java. There are many frameworks that simplify this and many enterprise level applications use Java.

    Even though it's a matter of opinion, one can easily argue that PHP is easier to get started and better suited for most small to medium tasks. However, to get the functionality that is found in enterprise level applications you most likely will be on a Framework like Zend, Laravel etc. And then one can easily argue that the learning curve is comparable to more complex languages. Hell I'll say more complex with PHP since the language is forgiving and will allow you to do some pretty silly things without error or warning.
     
    NetStar, Mar 11, 2017 IP
    ThePHPMaster likes this.
  8. yedort

    yedort Member

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    33
    #28
    Mehhh.
     
    yedort, Mar 14, 2017 IP
  9. cesarpa

    cesarpa Greenhorn

    Messages:
    10
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    13
    #30
    Java can be used for both client and server side. Javascript as well: Node.JS and Angular, React or Vue.JS.
     
    cesarpa, Mar 15, 2017 IP
  10. NetStar

    NetStar Notable Member

    Messages:
    2,471
    Likes Received:
    541
    Best Answers:
    21
    Trophy Points:
    245
    #30
    I don't know why it's needed to mention JavaScript as it has nothing to do with Java..which happens to be the topic...
     
    NetStar, Mar 18, 2017 IP
    sarahk likes this.
  11. sarahk

    sarahk iTamer Staff

    Messages:
    28,494
    Likes Received:
    4,457
    Best Answers:
    123
    Trophy Points:
    665
    #31
    atleast @cesarpa knew they were different things :)
     
    sarahk, Mar 18, 2017 IP
    NetStar likes this.
  12. mkkhatri

    mkkhatri Member

    Messages:
    147
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #32
    It depends. If you want to make it cost effective then you can go for php. Otherwise if you want fully secured than go for java.
     
    mkkhatri, Mar 31, 2017 IP
  13. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    818
    Best Answers:
    7
    Trophy Points:
    320
    #33
    Java does not support all platforms, whilst PHP does. Go with PHP for the widest solution.
     
    mmerlinn, Apr 1, 2017 IP
  14. Ryan_Stevens

    Ryan_Stevens Greenhorn

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #34
    I think PHP is better than the Java.
     
    Ryan_Stevens, Apr 20, 2017 IP
  15. sarahk

    sarahk iTamer Staff

    Messages:
    28,494
    Likes Received:
    4,457
    Best Answers:
    123
    Trophy Points:
    665
    #35
    have you used both?
     
    sarahk, Apr 20, 2017 IP
  16. eFusion World

    eFusion World Member

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    38
    #36
    PHP's good for web development. It's powerful, easy to learn/use, easy to set up, safe, fast and has a good standard library. It is also supported by almost all hosting providers even free ones! The documentation for the language is superb.
    Java's good generic language which is useful for a great variety of applications. It can be used as a replacement for PHP, but that's going to be much more difficult.
     
    eFusion World, Apr 21, 2017 IP
  17. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #37
    I agree with most of what you say, but "safe" isn't one of the words I would use to describe PHP. There are hundreds, if not thousands of ways you can shoot yourself in the foot with PHP, because of the lax coding standards, and multiple ways of doing even the simplest things.
     
    PoPSiCLe, Apr 22, 2017 IP
  18. KBay

    KBay Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #38
    For website you will need PHP only. Java rare is used for web design.
     
    KBay, May 2, 2017 IP
  19. Flora Lincon

    Flora Lincon Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #39
    PHP is easy to code and there are lots of frameworks available in PHP, using which you can easily create websites at your own. Recently, I learned this course from YouTube. You can see also learn easily form here.
     
    Flora Lincon, Jul 17, 2017 IP
  20. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #40
    Learn both (best to include c++).

    PHP is fine for front end application, where there is a low processing. I help manage an application that gets over 300 billion events a month. The front end is fine with PHP, however, once you start having to process data and work on algorithms, it would be near impossible to keep them in PHP with data growth. The speed would be slow, very slow. Java comes into work on the backend where we have data processing and algorithms working as daemons.

    Initially we had those jobs in PHP, it was OK when we started as the traffic wasn't too high. Once we started hitting half of the 300, moving them to Java reduced the speed by an average of 300% (example php runs in 90-170 mins while java runs in 7), which is critical to our operations and saves us hundreds of thousands of dollars a day. Eventually we are planning on converting all PHP cronjobs to Java just for the speed alone.

    Even thou Facebook frontend is written in PHP, it is still converted to C++. Otherwise PHP itself will not be able to handle such traffic efficiently cutting costs down.

    Additionally, Facebook uses Erlang, Java and C++ for backend functionalities -which are the major components of facebook. Ex: recommendations, etc..
     
    Last edited: Jul 18, 2017
    ThePHPMaster, Jul 18, 2017 IP