Image Host Script - PHP or Java

Discussion in 'Programming' started by leadingzero, Jan 19, 2007.

  1. #1
    I am a java programmer and have been considering designing my own image hosting site. However, almost all of the free scripts I have found have been in PHP. Is there a reason for this? For this application is PHP more efficient?
     
    leadingzero, Jan 19, 2007 IP
  2. tonyrocks

    tonyrocks Active Member

    Messages:
    1,574
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    88
    #2
    Well, PHP is simple and open source. So many people have already done the wor with you. Typically all graphic manipulation scripts (CGI, PHP and even c#) utilize the same graphic library: GDI+

    So as long as you make the component extensible you shouldn't have a problem.
     
    tonyrocks, Jan 19, 2007 IP
  3. sukantab

    sukantab Well-Known Member

    Messages:
    2,075
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    110
    #3
    1. php is open source
    2. php goes well with apache server and mysql - they are also open source.
     
    sukantab, Jan 19, 2007 IP
  4. koolasia

    koolasia Banned

    Messages:
    1,413
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Php also works directly in browsers java has requirements for it to work
     
    koolasia, Jan 20, 2007 IP
  5. projectshifter

    projectshifter Peon

    Messages:
    394
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think he was moreso talking about the serverside aspects here, but regardless, PHP is generally the preferential choice. I don't think PHP being open source has much to do with it, also java is going to be open source "in months" one article I read said, but it doesn't make a big effect on the developers unless you're specifically trying to do something at a lower level.

    PHP usually runs a bit quicker as it's written in C/C++ so it's lower level than Java based programs. PHP is more common-place now, Java/JSP stuff is relatively "old" for the business and doesn't have quite as much support. I think the big thing is that any server can run PHP for the most part, Java means you have to go out and get tomcat or something else installed to run it so it isn't quite as versatile. In closing, go php ;)
     
    projectshifter, Jan 21, 2007 IP
  6. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #6
    PHP scripts will just fit mostly on every hosting server that has PHP + GD Library /Imagemagick / Netpbm enabled.
    Easy to work with, no extended server specs required.
     
    Clive, Jan 24, 2007 IP