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.

Which is better? PHP or Java(JSP/Servlet) ?

Discussion in 'PHP' started by davindarrel, Dec 25, 2008.

  1. #1
    hi guys.. can anyone tell me which one is better and strong at present? is it PHP or java technologies like JSP, SERVLET or JSF hahah or ASP.net ????

    guys i learned Java Core and i learned jsp a lil bit.. but as u all see most of the websites are coded using PHP while still we all believe that Java Is More secure and powerfull... what is the reason behind it?

    plz lets discuss this thread in a serious manner.. it will be helpfull to all the newbies who wish get into enterprise programming :)


    Merry Christmas
    SEMrush
    DAVIN
     
    davindarrel, Dec 25, 2008 IP
    SEMrush
  2. Freewebspace

    Freewebspace Notable Member

    Messages:
    6,214
    Likes Received:
    370
    Best Answers:
    0
    Trophy Points:
    225
    #2
    I think Php is better because is very easy to learn and also it is very fast that's why you see a lot of sites in Php rather than in JSP

    Even wikipedia runs on Php..
     
    Freewebspace, Dec 25, 2008 IP
  3. tamilsoft

    tamilsoft Banned

    Messages:
    1,157
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #3
    My vote is for PHP........
     
    tamilsoft, Dec 25, 2008 IP
  4. www.hunthost.in

    www.hunthost.in Peon

    Messages:
    147
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    www.hunthost.in, Dec 25, 2008 IP
  5. levikay

    levikay Active Member

    Messages:
    294
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    68
    #5
    I think JSP is better as its based on JAVA. True it's a bit slower then php but only the first time you load the page.
    one big advantage of jsp is security.
    and if you know java its very easy to learn jsp.
     
    levikay, Dec 25, 2008 IP
  6. Sapphiro

    Sapphiro Well-Known Member

    Messages:
    1,148
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    175
    #6
    JSP is time intensive I heard, while ASP.NET only works on Windows hosting, thus making PHP a popular choice among web programmers. :l
     
    Sapphiro, Dec 25, 2008 IP
  7. krzyk

    krzyk Peon

    Messages:
    61
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    The best in Java is the whole architecture around it, j2ee or spring based. You could get security, caching, authorization, transactions almost out of the box, while in PHP one has to do alot of coding to have those.
    JSP is something like Smarty for php, just a tip of the iceberg.

    So if you need just a simple page (one or two developers for short period of time) then PHP is probably a better choice. Oh, and it's much much easier to get cheap hosting for it.
     
    krzyk, Dec 25, 2008 IP
  8. marcbarak

    marcbarak Guest

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    PHP is the most common, more secure than ASP and Java is a tougher learning curve for newbies
     
    marcbarak, Dec 25, 2008 IP
  9. ankur0101

    ankur0101 Peon

    Messages:
    278
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I agree with marcbarak, PHP is great, really really great, it is opensource so many free webhosting providers support php , mySQL

    Hosting for PHP very very cheap compared to JSP and ASP.net

    I will vote for PHP
     
    ankur0101, Dec 26, 2008 IP
  10. tonsh

    tonsh Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I think php is more fit to begginer as it's easy,but if can learn both,different language has different mind.
     
    tonsh, Dec 26, 2008 IP
  11. planemaniac

    planemaniac Peon

    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I think PHP is a great place to start, but once you've covered that, I think it's really worthwhile moving onto Java Server Pages or something, maybe just learn Java.
     
    planemaniac, Dec 26, 2008 IP
  12. theprayag

    theprayag Greenhorn

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #12
    in my opinion its java. php have many limitation compared to jsp and also jsp have more application
     
    theprayag, Jan 4, 2010 IP
  13. kosmowariat

    kosmowariat Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    PHP is most popular. But recently i'm using Python (with Django).
     
    kosmowariat, Jan 4, 2010 IP
  14. vinoth.t

    vinoth.t Peon

    Messages:
    156
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I agree PHP is easy to learn, But when we consider memory leak and security. Java(JSP) is best one....
    In java just compiled class will be enough to run but in PHP we have to use the Source code..
     
    vinoth.t, Jan 4, 2010 IP
  15. nhc1987

    nhc1987 Notable Member

    Messages:
    2,678
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    230
    #15
    Small - Medium projects: PHP
    Large projects: ASP.NET/JSP
     
    nhc1987, Jan 4, 2010 IP
  16. krzyk

    krzyk Peon

    Messages:
    61
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Java is much more than just JSP.
    JSP in Java is like Smarty in PHP, just the view layer.
     
    krzyk, Jan 4, 2010 IP
  17. Bohra

    Bohra Notable Member

    Messages:
    12,582
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    260
    #17
    PHP is basically good IMO as its little easy to use plus the userbase is pretty large too
     
    Bohra, Jan 4, 2010 IP
  18. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #18
    I've been learning both PHP and Java, and my preference is PHP and will always be PHP. PHP is extremely easy to use and can be quite powerful, and in my opinion, it only appears to be less secure since it's more commonly used and hence will have more people trying to find vulnerabilities in it. I suppose it's mostly preference in honesty
     
    Grit., Jan 4, 2010 IP
  19. Monie

    Monie Peon

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #19
    What about Facebook though?
     
    Monie, Jan 4, 2010 IP
  20. Izonedig

    Izonedig Member

    Messages:
    150
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #20
    PHP is the best, that's for sure !!!!
    And it's free, and it's opensource, and works well with mysql, and with apache ....

    And the most of classes are in php, a lot of free php scripts are always available.

    And if you want to hire a programmer for your website, php programmers are cheaper, and do the work faster :)

    Want tell you more ?

    PHP works in windows and linux, asp.net doesn't

    Linux servers are better than windows ones

    hosting in linux servers with php is much cheaper, and are reliable !!!

    I don't want to talk about JSP or ASp and give you all their negative things, you get the point.
     
    Izonedig, Jan 4, 2010 IP