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. #1
    Hello Everyone,
    From PHP or Java , which programming language is easy for building a website.
     
    cinemagicllc, Dec 25, 2016 IP
  2. Einheijar

    Einheijar Well-Known Member

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    165
    #2
    In terms of ease of use, PHP hands down.
     
    Einheijar, Dec 26, 2016 IP
  3. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #3
    How complex is the website going to be?
    How many features are you able to get from existing scripts?
    Which do you already know?

    The simple answer is PHP but you'll need JavaScript with both as well as css. Any modern website is made up of multiple tools
     
    sarahk, Dec 26, 2016 IP
  4. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,151
    Likes Received:
    1,656
    Best Answers:
    29
    Trophy Points:
    475
    #4
    If you're planning to sell that site in the future php is the way to go (more people know php than java).
     
    qwikad.com, Dec 26, 2016 IP
  5. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #5
    Do you need to access hardware / strictly machine components? Then Java. If not, why the hell would you use Java, the most insecure programming language on the planet, which should never, ever be exposed to the Internet at all? PHP, hands down. Of course, if you're talking about JavaScript, not Java (which are two completely different things) the answer might be completely different.
     
    PoPSiCLe, Dec 28, 2016 IP
    sarahk likes this.
  6. Green Harry

    Green Harry Greenhorn

    Messages:
    29
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    8
    #6
    PHP is the way better than java. Ease of use and understanding. Simple go with PHP.
     
    Green Harry, Dec 29, 2016 IP
  7. Einheijar

    Einheijar Well-Known Member

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    165
    #7
    Why would you say Java is insecure? It's all a matter of implementation, I've worked with JSP quite awhile back and it doesn't seem all that insecure to me.
     
    Einheijar, Dec 29, 2016 IP
  8. emailmbooster

    emailmbooster Member

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #8
    If you website is complicated, I suggest to use Java because it's easier to maintain. PHP is real hard to maintain.

    One thing you can get benefit from PHP that the service doesn't down when you deploy an update like java (everytime you deploy a new war file, java web container need restart)
     
    emailmbooster, Dec 29, 2016 IP
  9. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #9
    Lemme see...
    https://heimdalsecurity.com/blog/java-biggest-security-hole-your-computer/
    http://www.zdnet.com/article/oracle-issues-emergency-java-patch/
    https://en.wikipedia.org/wiki/Java_security

    And the fact that nearly every single Java-based application used on the Web have been retired for better, more secure (for the user, who doesn't need to have the Java-sdk installed) programs...
     
    PoPSiCLe, Dec 30, 2016 IP
  10. Andy Flintoff

    Andy Flintoff Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #10
    PHP is easy language . But Java is a secure language.
     
    Andy Flintoff, Jan 10, 2017 IP
  11. kirsl

    kirsl Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #11
    PHP. Btw it depends on task and application.

    If you going to built high-load web-site - you need to know about PHP limitations.

    PHP is great for simple or medium web applications, but incredibly bad for high-load. Java will be better, if you going to 100k+ requests in a hour.
     
    kirsl, Jan 10, 2017 IP
  12. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #12
    sarahk, Jan 10, 2017 IP
  13. kirsl

    kirsl Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #13
    it's a different story, bro :)
     
    kirsl, Jan 12, 2017 IP
  14. NetStar

    NetStar Notable Member

    Messages:
    2,471
    Likes Received:
    541
    Best Answers:
    21
    Trophy Points:
    245
    #14
    There's a good chance that Popsicle doesn't program in Java to speak factually. It seems as if he is talking about Java Applets which to a degree I can agree with but that is a method of how you can run and use Java rather than an opinion of the language itself. Personally I think Java is fantastic for server side programming. I love the structure and power it has. However, personally, I would use PHP for most projects since I can develop it faster, like most people. But if I was looking at developing a very extensive extendable application requiring a high load I wouldn't use PHP. I would look at Java or C#.

    Most websites that require a programming language use that language for simple data validation, communicating with a database via sending/receiving data, and very simple text parsing and image manipulation. Any damn language can do that just fine. And most languages can handle a very high load without sitting down with a team of geeks to develop an infrastructure out of NASA's headquarters. By the time you ever need to recruit that dream team you should have some sort of business model to capitalize on your insane traffic. That's kind of why you don't see those types of questions on message boards.
     
    NetStar, Jan 16, 2017 IP
  15. Abegail Louise Acosta

    Abegail Louise Acosta Greenhorn

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #15
    It's not right to compare PHP to Java, since PHP is a server side scripting language while Java is a client side choice. Basically, the way they operate is different. But, mostly Java is great when development is complicated meanwhile PHP is great for nimble choice.
     
    Abegail Louise Acosta, Jan 16, 2017 IP
  16. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #16
    Java is a server side language and I suspect it's capable of being "nimble".
     
    sarahk, Jan 16, 2017 IP
  17. NetStar

    NetStar Notable Member

    Messages:
    2,471
    Likes Received:
    541
    Best Answers:
    21
    Trophy Points:
    245
    #17
    JavaScript is client side... Java is not.
     
    NetStar, Jan 16, 2017 IP
  18. Abegail Louise Acosta

    Abegail Louise Acosta Greenhorn

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #18
    I am so sorry, Java is both for server-side and desktop programming language.
     
    Abegail Louise Acosta, Jan 16, 2017 IP
  19. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #19
    sarahk, Jan 17, 2017 IP
  20. rickvb

    rickvb Active Member

    Messages:
    157
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #20
    I think you may be confused with Java clientsoftware (because that's what the links are about), they are known to have holes in their security and many browsers won't even use the websoftware anymore.
    In terms of security, Java based webservers are safe, because any potentially harmful code is not run on your computer and java has some good security libraries such as spring framework.

    Java is quite difficult to start with. PHP is easier, Python Django is even easier in my opinion.
     
    rickvb, Jan 17, 2017 IP