+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Why PHP hosting is preferred over java hosting?

  1. #1
    venu123 is offline x10Hosting Member venu123 is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    4

    Why PHP hosting is preferred over java hosting?

    When both PHP and Java hosting are free? why do we find more PHP hosting sites than java hostings??

    Please help me out friends to figure it out

  2. #2
    Jesse's Avatar
    Jesse is offline Lord Of The Keys Jesse is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    Manila, PH
    Posts
    1,357

    Re: Why PHP hosting is preferred over java hosting?

    PHP Hosting is common on the net. Although Java is also powerful it is rarely used. I think so... :P
    x10HOSTING
    Member Since October 2007.

    JESSEMAN.ME
    | iMusicz.net

  3. #3
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: Why PHP hosting is preferred over java hosting?

    isn't Java like a run-time applet or something? like don't you have to download the code onto your computer before you can fully use it functually..
    (correct me if I am wrong)
    if so then PHP is understood by the browser and not the computer...in easier sense....PHP can be used alot more and easier..
    plus I don't know Java

  4. #4
    deadimp is offline x10 Sophmore deadimp is an unknown quantity at this point
    Join Date
    Jun 2007
    Posts
    249

    Re: Why PHP hosting is preferred over java hosting?

    If you're talking about Java applets, the host doesn't really play much of a part in this unless they explicitly block those file types. Java applets are executed client side, therefore don't have much of an impact on the server other than file transfer and maybe some extra transmitted info.
    If you're talking about Java servlets, the host plays more of a part. Most hosts may not do Java servlets because of security reasons.
    The reason PHP is so popular is because it's widely supported and maintained, and mainly an interpereted language, meaning you don't have to compile it - unlike Java.
    deadimp.org
    > Thacmus [v0.3.0] - Open source CMS, PHP 5, MySQL

    "¡Ya lo sabo!" - Lo Ausente

  5. #5
    jeyson65 is offline x10Hosting Member jeyson65 is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    10

    Re: Why PHP hosting is preferred over java hosting?

    I primarily develop in Java so maybe my perspective would be helpful here. I'm assuming this thread is referring to Java servlet and JSP hosting. Applets are run by the client so the server has nothing to do with it. I would say the main reason that PHP is more popular is because it's simpler to host. Java being a compiled language does complicate things a little but typically Java applications are uploaded to a server as a single WAR file containing already multiple compiled servlets and JSPs. I don't think security is any more of a problem with Java than it is with PHP. I don't know where Java stands in popularity compared with PHP but Java is still pretty common. Java is also certainly well supported and maintained. Another problem with Java is that some changes require the server to be bounced. Most free Java hosts I've seen typically bounce the server on a daily basis for this reason.

  6. #6
    venu123 is offline x10Hosting Member venu123 is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    4

    Re: Why PHP hosting is preferred over java hosting?

    I guess it is because java consumes more resources and it is difficult to maintain...please correct me if I am wrong...

  7. #7
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: Why PHP hosting is preferred over java hosting?

    Quote Originally Posted by venu123 View Post
    I guess it is because java consumes more resources and it is difficult to maintain...please correct me if I am wrong...
    Difficulty to maintain I'll correct you on; technically anything's difficult depending on who coded it. If you follow the usual standards I can't see Java being any more difficult to maintain by a skilled java programmer as it is to maintain PHP if you're a skilled php programmer.

    Dunno about the resources part though; I've never really used Java, so I can't really say much about system resources.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  8. #8
    coolv1994 is offline x10 Elder coolv1994 is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    506

    Re: Why PHP hosting is preferred over java hosting?

    php is one of the more commonely used langues and has the most functionally and scripts. also java is nice but not as easy

  9. #9
    fdbessjr is offline x10Hosting Member fdbessjr is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    24

    Re: Why PHP hosting is preferred over java hosting?

    Quote Originally Posted by diabolo View Post
    isn't Java like a run-time applet or something? like don't you have to download the code onto your computer before you can fully use it functually..
    (correct me if I am wrong)
    if so then PHP is understood by the browser and not the computer...in easier sense....PHP can be used alot more and easier..
    plus I don't know Java
    No, PHP is run on the server, and the output HTML is sent to the browser ;)
    that's why it's so secure, because nobody can view you PHP script, all they can see if they look at the source is the HTML output, which won't tell them anything important

    also if the browser had to run the script,
    they would have to have the software to run the PHP ;)
    Last edited by fdbessjr; 01-04-2008 at 11:30 PM.

  10. #10
    tgkprog is offline x10 Sophmore tgkprog is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    Bangalore India
    Posts
    225

    Re: Why PHP hosting is preferred over java hosting?

    both php and java-jsp output the same thing - html and run on the server.

    java applets are client side programs also written in java - and u dont need a java server for them - this is a java applet http://sel2in.in/prjs/aplt/go my sites on x10 so no java on server (as yet)
    http://sel2in.com/ Java - Mobile, Website applications PHP, My SQL, VB6 & VBA http://www.thehungersite.com

+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Idiotic hosting (NOT THIS WEBHOST!!)
    By darkuranium in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 09-05-2007, 03:11 PM
  2. Replies: 0
    Last Post: 07-05-2005, 10:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers