aspose file tools*
The moose likes General Computing and the fly likes Java Web hosting Vs PHP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Java Web hosting Vs PHP" Watch "Java Web hosting Vs PHP" New topic
Author

Java Web hosting Vs PHP

Nitin Pathak
Ranch Hand

Joined: Sep 25, 2006
Posts: 70
In the initial stages of an app development, I need to rethink over my options for choosing the absolutely right technology. There are numerous resources that compare the 2 biggies - Java Vs PHP, and conclude they are totally different and shouldn't be compared; my approach is to focus about the final runtime of the application where it should perform. Web hosting is one constraint where I am unsure about the opaque JVM running my application (as far as Java is concerned).

I want my application to be functionality centric; I have a smooth hands on J2EE and not-so-much on PHP. Still, I want my application to be precise, beta-version to be out sooner and net traffic could start with moderate and can stay there for sometime.

PS: Each functionality the application supports are by far most generic (eg: discussion forum), hence both the technology would have the api available to slide through the implemeentation.

Question: Which one should be preferrable?
[ January 02, 2009: Message edited by: Nitin Pathak ]
Peter Lawrey
Ranch Hand

Joined: Dec 21, 2008
Posts: 62
Either Java or PHP appears to be fine for what you describe. I would suggest sticking with what you are comfortable with.
Nitin Pathak
Ranch Hand

Joined: Sep 25, 2006
Posts: 70
Thanks Peter! I missed a point in the OP that intial phases would see my application being hosted on a virtual dedicated server due to the cost-constraints.

I have done a little research (read 'Googled') about the limitations of JVM on a shared virtual server, where PHP goes through smoothly. Maybe I am looking to convince myself to use PHP for a not-so-complex application. Please post any kinds of suggestions, if this is worth replying to!
[ January 02, 2009: Message edited by: Nitin Pathak ]
Nitin Pathak
Ranch Hand

Joined: Sep 25, 2006
Posts: 70
Information sake - I decided to go and explore the possibilities of PHP and found it useful. Now looking back at JavaRanch running on a java platform with more 'awesomeness', there is an option for me to
Maryna Litvinchik
Greenhorn

Joined: May 01, 2007
Posts: 7
Nitin,
Seems I am trying to solve the same question for myself: Java vs PHP .
I have done a lot of research and still not convinced which one is better. Did you come to any conclusions? Do you mind sharing?
Thanks
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 1966
    
    7

May I can give my 2 cents. I'm been doing PHP for quite some time. In terms of web hosting, the servers PHP and Java runs on shouldn't have much difference in scalability, maintanability etc.

Now if you talk coding wise, it really depends on what frameworks you use if any, how you design your objects/classes etc.

Using RAD terms, PHP is supposed to be better. Why? Cos java needs to jar it, distribute it. But PHP just upload that php file.

In fact have you consider combining the 2? Use each capability to maximize your goals. Eg use java for some more complicated things (hopefully less change often) and php for the commonly used things. Of course this will really depends on how the server is set up.

Now you mention "virtual" servers. Don't know much about that but I'm sure in today's world, virtual or not should able to handle both language on single server pretty well. It will be best if a app server can support .NET, Java and PHP.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7
Nitin Pathak
Ranch Hand

Joined: Sep 25, 2006
Posts: 70
May Davlud wrote:Nitin,
Seems I am trying to solve the same question for myself: Java vs PHP .
I have done a lot of research and still not convinced which one is better. Did you come to any conclusions? Do you mind sharing?
Thanks

I absolutely am going with clean PHP as of now since my application had to see the light of the day in less than 2 months and effectively, most of it is done. I would advise the same to you as well when the implementation time is limited to 1-2 months, PHP is the way to go; rapid page development gives you a HIGH which you dont want to let go.

Being a Java junkie, I was absolutely looking for a more practical approach and K. Tsang has pointed me to the exact and aboslute direction I would want to take in future (thanks a bunch for that).

There you go!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Web hosting Vs PHP
 
Similar Threads
Swing vs. Web vs. ...
Java vs. PHP
For Mr. Cohen: Testing Java vs. testing .NET
JSP/Servlet VS PHP
Delphi vs. Java