which is best PHP or Java ?

147 replies
Friend can anyone tell me about these both language that which is best with allover performance ?
#java #php
  • Profile picture of the author AdWorkMedia
    It would really depend on what purpose you are using the languages for. But if you are focusing on web development then hands down I would recommend PHP. Also if you are new to programming then you may find that PHP is easier to grasp and there are also more resources available online than Java.

    Still, both are powerful languages with great performance.
    Signature


    AdWork Media » Global Affiliate Network & Content Locking Solutions

    Custom Platform, Flexible Lockers, Offers For Every Country
    {{ DiscussionBoard.errors[4273595].message }}
    • Profile picture of the author Shilpa
      For me its PHP....
      {{ DiscussionBoard.errors[4273632].message }}
  • Profile picture of the author wedhooz
    you should read this article, maybe can give you another point of view between this never ending argument
    PHP vs. Java – Which One Is the Better Web Language? | OnePixelAhead
    {{ DiscussionBoard.errors[4273665].message }}
    • Profile picture of the author phpguy
      Depends on what you are wanting to do there is a lot less learning curve with PHP, but all the concepts are the same.

      Think of yourself as a carpenter you wouldnt use a screwdriver to hammer a nail you would use whatever tool it makes it easier to do get that nail in.
      {{ DiscussionBoard.errors[4273863].message }}
  • Profile picture of the author ngseosept
    It's PHP
    {{ DiscussionBoard.errors[4283537].message }}
  • Profile picture of the author Devskumar9
    Java language is hard compare the php for learning point then php is good for the learning and jobs point of java is good compare the php because In the java lot's of software develop and website develop. Java is good for the authentication program.
    {{ DiscussionBoard.errors[4285056].message }}
    • Profile picture of the author jacobsmith
      I think php is best in web development..
      And also user friendly.
      {{ DiscussionBoard.errors[4285249].message }}
  • Profile picture of the author olakh
    PHP is best.Because it is easy to implement and understand.
    {{ DiscussionBoard.errors[4285322].message }}
  • Profile picture of the author ApocalypseXL
    There is no "Best" because they are different beasts . PHP is a server side script while JavaScript (aka LiveScript) is a client side script .
    Signature
    Victory at all costs, victory in spite of all terror, victory however long and hard the road may be; for without victory there is no survival.
    {{ DiscussionBoard.errors[4285762].message }}
  • Profile picture of the author MrPolarZero
    Java for me. I find Java easier to learn than PHP.
    {{ DiscussionBoard.errors[4287379].message }}
  • Profile picture of the author MuttelKiln
    Java is best...i will vote for java.
    {{ DiscussionBoard.errors[4290981].message }}
  • Profile picture of the author cordyceps75
    PHP is for web based application. Java is for desktop application.

    But Java can be convert to web based using JSP+servlet. I think the best is PHP for web based because PHP is commonly use by people around the world. Java is also good, but for the high level transactions, you must use Java for the server.
    {{ DiscussionBoard.errors[4291737].message }}
  • Profile picture of the author seamusb
    Originally Posted by divontop View Post

    Friend can anyone tell me about these both language that which is best with allover performance ?
    The answer to this question is - it depends.

    PHP is great for web development and quick scripts. It has plenty of available open source code (including my beloved WordPress) and is easy to learn. For more advanced programming it supports object orientated frameworks such as CakePHP and CodeIgniter. It performs well and hosting is cheap and plentiful.

    Java is a much more verbose language, is slower for development and the tools are generally more complex. The hosting is also more expensive. However, there are some frameworks and languages that use the JVM (Java virtual machine) such as Clojure and Scala that are very trendy at the moment with some developers.

    I would say that if you are going for self employed type contracts for small businesses PHP is what I would learn. Java is for more corporate work. Both perform very well in their native environments
    {{ DiscussionBoard.errors[4292351].message }}
  • Profile picture of the author wayfarer
    If your question is really just about performance, then the answer is Java, which performs about 400 times faster than PHP in many cases. In a database driven website, the weakest link performance wise is the database itself, so the choice of programming language does not matter a bit when it comes to performance.

    If you are performing operations that are computationally expensive, it would be foolish to use PHP, but for most normal cases, it is fine.

    By computationally expensive, I mean, for example, a tree searching operation, which is the computation of a "tree" of unknown, or infinite size. Such operations will use 100% of your processor if you allow them to. An example of this would be searching an unindexed filesystem for specified values, or finding possible outcomes on a chess board. Java is good for this, even better would be a compiled language like C++ or C.
    Signature
    I build web things, server things. I help build the startup Veenome. | Remote Programming Jobs
    {{ DiscussionBoard.errors[4292646].message }}
  • Profile picture of the author addison.agnote
    Most Java developers think that PHP is very basic, unprofessional language that can be messy, lacks structure, doesn’t have a good IDE (integrated development environment) like Eclipse or RSA, and isn’t a good platform for a real website. On the Contrary PHP developers says that Java is overly complex and cumbersome, and that it isn’t a good platform because development time is just too slow and tedious.
    {{ DiscussionBoard.errors[4314291].message }}
  • Profile picture of the author stufftheme
    java is best for company placement and working there
    but for home designing php is the best
    {{ DiscussionBoard.errors[4317267].message }}
  • Profile picture of the author idreesfarooq
    Offcourse, PHP as it is lot easier to understand than Java
    Signature

    Check out for more strategies on my website www.marketingwithidrees.com

    {{ DiscussionBoard.errors[4317355].message }}
  • Profile picture of the author Jake Gray
    Java's main purpose isn't for web development.

    On the other hand, PHP is.
    {{ DiscussionBoard.errors[4319894].message }}
  • Profile picture of the author williamjacob
    There is no real absolute answer to your question unfortunately, because both languages have their pro's and cons.

    I use both; php for smaller projects and java for more complex or "critical" projects, generally. It is easier/faster to code in php. It just seems a bit more "amateurish" than java, and doesn't allow for robust OO coding, tier separation, and other buzz words. (I'm sure some will argue otherwise)

    One benefit of php is that it is (ironically) more portable than java, since it's an interpreted language and nearly all hosts support it. To support java, you need a JVM running and that adds extra complexity that many hosts don't want to bother with, unless you'vee got a dedicated package or some other setup that provides the JVM. Since php code is interpreted each time it loads it will never perform as well as java or allow you to catch errors at compile time (there is no compile time), although there are various optimizing and caching mechanisms to help with performance.
    {{ DiscussionBoard.errors[4320173].message }}
    • Profile picture of the author Codez
      Originally Posted by williamjacob View Post

      There is no real absolute answer to your question unfortunately, because both languages have their pro's and cons.

      I use both; php for smaller projects and java for more complex or "critical" projects, generally. It is easier/faster to code in php. It just seems a bit more "amateurish" than java, and doesn't allow for robust OO coding, tier separation, and other buzz words. (I'm sure some will argue otherwise)

      One benefit of php is that it is (ironically) more portable than java, since it's an interpreted language and nearly all hosts support it. To support java, you need a JVM running and that adds extra complexity that many hosts don't want to bother with, unless you'vee got a dedicated package or some other setup that provides the JVM. Since php code is interpreted each time it loads it will never perform as well as java or allow you to catch errors at compile time (there is no compile time), although there are various optimizing and caching mechanisms to help with performance.
      Actually You can build robust OOP with PHP if you know how. It's not hard at all just takes more time imho.
      {{ DiscussionBoard.errors[4904013].message }}
  • Profile picture of the author hhunt
    There is no best language. Always choose the best tool for the job.
    {{ DiscussionBoard.errors[4320251].message }}
  • Profile picture of the author dennyrichs
    both are better.it depends on what are you trying to do.Php is being mostly used today because of its non procedural nature.it is useful for small websites and web applications.where Java is useful for large,complex applications and for mobile development.
    {{ DiscussionBoard.errors[4349934].message }}
  • Profile picture of the author Zenix
    Ofcourse this depends on what you shall do. PHP or Java, try them both and see which one you like.
    {{ DiscussionBoard.errors[4350029].message }}
  • Profile picture of the author jasonthewebmaster
    Banned
    This thread is totally pointless! You are trying to compare apples to oranges here.
    {{ DiscussionBoard.errors[4350186].message }}
  • Profile picture of the author SUPER Louie
    PHP is normally used for short term projects because the coding style is a bit crude and hard to maintain since you have to repeat codes over and over again.

    Java can be used for bigger projects because you can use frameworks like Spring & Hibernate or Groovy & Grails to make code repetition lesser and to make it easier to maintain the project in case you need to revise it in the future (or if there are scope creeps)
    Signature
    A superhero is someone who knows how to be quiet, shed a tear for a moment, then pick up his sword, and fight again!
    {{ DiscussionBoard.errors[4350401].message }}
  • Profile picture of the author try_hard_samurai
    Languages are simply tools that you can use to solve problems. As all things under the sun they each have their strengths and weaknesses. Java is an all purpose language that is massively popular in the corp world. You can make most anything with it.

    PHP is a language built for the web.

    So, if you're thinking about building desktop apps, then Java is the way to go. Internet stuff, PHP all the way. But really, it comes down to personal preference in the end.
    {{ DiscussionBoard.errors[4350673].message }}
  • Profile picture of the author pratap295
    There is relay no absolute answer to your question unfortunately, because both languages have their pro's and cons.

    I use both; php for smaller projects and java for more complex or "critical" projects, generally. It is easier/faster to code in php. It just seems a bit more "amateurish" than java, and doesn't allow for robust OO coding, tier separation, and other buzz words. (I'm sure some will argue otherwise)

    One benefit of php is that it is more portable than java, since it's an interpreted language and nearly all hosts support it. To support java, you need a JVM running and that adds extra complexity that many hosts don't want to bother with, unless you'vee got a dedicated package or some other setup that provides the JVM. Since php code is interpreted each time it loads it will never perform as well as java or allow you to catch errors at compile time, although there are various optimizing and caching mechanisms to help with performance.
    Signature
    {{ DiscussionBoard.errors[4359435].message }}
    • Profile picture of the author butlermills
      PHP and java both are best programming language. According to me, Java is a better then PHP. Java is a very simple and easy programming language. really i like to use only the java.
      {{ DiscussionBoard.errors[4360879].message }}
  • Profile picture of the author muftdagyan
    If you are aiming to make software or web apps or combined web app that is a software then i think you should go for java,you can also do peer to peer programming in java.
    If you simply want to make a website or a simple web app than go for php.
    Php is easy to learn,and you can see great examples of web apps and websites made in php like facebook.
    One more thing finding good shred hosting for java is difficult than finding good shared host for php.
    Signature
    Desi masala ! Desi tadka ! desi masti

    blogger seo tips

    blogger forum
    {{ DiscussionBoard.errors[4360923].message }}
  • Profile picture of the author harry142
    I think java is best.........
    {{ DiscussionBoard.errors[4366593].message }}
  • {{ DiscussionBoard.errors[4366846].message }}
    • Profile picture of the author websilog
      it depends on the purpose you'll be using it for. php rules for web dev.
      {{ DiscussionBoard.errors[4389488].message }}
  • Profile picture of the author BillBert
    3 years ago I would have said Java hands down. However PHP has really come a long way in closing the gap. Today, my first choice for server side development is PHP, no question!
    Signature
    Do You Need a Cost Effective way of reaching out to your offline clients or prospects?

    Feel free to contact me directly and I will give you the details!
    {{ DiscussionBoard.errors[4402545].message }}
    • Profile picture of the author tucan
      Between PHP and Java, I prefer PHP.

      Between PHP and Perl, I prefer Perl.
      {{ DiscussionBoard.errors[4404240].message }}
  • Profile picture of the author anoopWebtech
    i think php is more better tha java
    {{ DiscussionBoard.errors[4405530].message }}
  • {{ DiscussionBoard.errors[4406945].message }}
  • Profile picture of the author leppozdrav
    Java would definitely not be the language but yes JSP can be an option but still I would go with PHP as I know to an extent PHP but not JSP.Java and PHP have very different uses to achieve optimum efficiency and what one is good for the other may not be.
    {{ DiscussionBoard.errors[4411200].message }}
  • Profile picture of the author rajraju131
    PHP is the best and it is open source to study easily...
    {{ DiscussionBoard.errors[4411923].message }}
  • Profile picture of the author andy25i
    PHP and Java both have there own features for which they are know. Comparing them is of no use but if you are new to the programing and designing world prefer php as it is a bit less complicated compared to JAVA.
    Signature

    ........

    {{ DiscussionBoard.errors[4904355].message }}
  • Profile picture of the author ranji01
    i think php is the best
    {{ DiscussionBoard.errors[4904380].message }}
  • Profile picture of the author SebastianJ
    Ruby on Rails. 'Nuff said.
    {{ DiscussionBoard.errors[4905691].message }}
    • Profile picture of the author ShowSpace
      Originally Posted by SebastianJ View Post

      Ruby on Rails. 'Nuff said.
      I second that. Rails has made such an incredible development in the last years, it's lightyears ahead of any other framework I have used.
      Because Rails is so powerful, it has also quite a steep learning curve, but there is a crazy active and friendly community out there and it's almost hard to find problems that haven't yet been solved by somebody else.
      {{ DiscussionBoard.errors[4979529].message }}
      • Profile picture of the author DEaFeYe
        Banned
        [DELETED]
        {{ DiscussionBoard.errors[4980053].message }}
        • Profile picture of the author ShowSpace
          Originally Posted by DEaFeYe View Post

          You clearly haven't used Django. It's on equal footing with Rails. Django doesn't have much "learning curve" issues... the most difficult part of my converting to Django was learning a solid server configuration for it. After that, the most learning that needs to be done is searching for packages to install... but then again same is true with Rails and its gems sooo... yeah
          I hear a lot of good stuff about Django (and I love it's tagline "The web framework for perfectionists with deadlines" ). I have actually tried it but I admit it was a while (2+ years) ago.

          Yeah well, I guess every programmer will tell you the tools HE uses are the best, just because he's so immersed in them that he fails to see how something else might be awesome as well.

          I will put Django on my weekend play-around list. Thanks for the reminder!
          {{ DiscussionBoard.errors[4980087].message }}
          • Profile picture of the author ShowSpace
            Just realized this is a thread titled "which is best PHP or Java ?"...

            Quick answer: "best" if none of them, PHP has been great in former times but has been lept over by programming languages like Python and Ruby that actually encourage you to write great code (PHP encourages you to write bad code. It's a fact.)
            I'd suggest you try one of those two named languages if you want to get into high level programming (startups, web apps) these days. If you want to become a "real" programmer (big company, big systems), I guess C++ and Java are still the way to go...?
            {{ DiscussionBoard.errors[4980128].message }}
  • Profile picture of the author deepsand
    Comparing PHP and Java is almost like comparing apples and oranges. You can have php programming with Java script on your website. It all depends on what you want to do, but the programs are different.
    {{ DiscussionBoard.errors[4905741].message }}
    • Profile picture of the author freehugs
      Originally Posted by deepsand View Post

      Comparing PHP and Java is almost like comparing apples and oranges. You can have php programming with Java script on your website. It all depends on what you want to do, but the programs are different.
      Comparing Java to Javascript is like comparing apples to butternut squash. Java is a byte-compiled statically typed language with C-like syntax and OO features. Javascript is generally only used for client side scripting in web browsers and is a duck-typed, dynamic, prototypal scripting language.
      {{ DiscussionBoard.errors[4907548].message }}
  • Profile picture of the author DavidWincent
    The purpose of both the languages is different. Java provides better authentication. Java language is tough to learn than PHP. PHP is quiet simple and easy to understand.
    {{ DiscussionBoard.errors[4909569].message }}
    • Profile picture of the author freehugs
      Originally Posted by DavidWincent View Post

      The purpose of both the languages is different. Java provides better authentication. Java language is tough to learn than PHP. PHP is quiet simple and easy to understand.
      Also, MongoDB is the secret ingredient in the webscale sauce.
      {{ DiscussionBoard.errors[4911656].message }}
      • Profile picture of the author DEaFeYe
        Banned
        [DELETED]
        {{ DiscussionBoard.errors[4911835].message }}
        • Profile picture of the author freehugs
          Originally Posted by DEaFeYe View Post

          But it does bring up a great point. Scalability is all about the virtual server architecture and has very little to do with the language things are written in.
          Couldn't agree more, I just decided that I would engage in moronic false blanket statements since that's what everyone else does.

          For the lulz:
          {{ DiscussionBoard.errors[4912863].message }}
          • Profile picture of the author groundliner
            Many would say Java But as for me & i have tried this PHP is the best. If i were you take to account those who used this.
            {{ DiscussionBoard.errors[5529843].message }}
  • Profile picture of the author wndrshare
    I am a java programmer mainly, but I’ve been looking at a lot of posts of java vs php, and all of them say that java is more for the enterprise than php, but give NO reasoning for this.
    {{ DiscussionBoard.errors[4910441].message }}
  • Profile picture of the author SEO Inspection
    I vote for Python - but learn both.
    Since PHP is very straight forward and the learning curve is a little steep for Java, you may get frustrated and stop working with Java. Then as you learn more about programming and PHP, you'll pick up the java book again and have a better chance at learning it. Good Luck
    {{ DiscussionBoard.errors[4910543].message }}
    • Profile picture of the author rileywhitaker13
      First of all decide why you want to learn the language.

      Then it is easy for you to decide which is best for you
      {{ DiscussionBoard.errors[4976118].message }}
      • Profile picture of the author linesupplygrow
        For web programming for a whole site, I would recommend PHP, but in the event you have a site & need to add to its functionality, JavaScript may be the way to go. It depends on what your needs are.
        {{ DiscussionBoard.errors[5440013].message }}
    • Profile picture of the author JackiPhone
      As per my opinion So PHP is best because PHP is easy to understand and use.But if any buddy want to use flash effect in the website so java is best.
      {{ DiscussionBoard.errors[5066402].message }}
    • Profile picture of the author wilsongrat
      I think PHP is best programing language because PHP is easy to learn.PHP and JAVA is open source.So it's very secure and provide excellent feature but Java is very toffees language.I currebtly use for PHP language.I think PHP better then Java.
      {{ DiscussionBoard.errors[5266869].message }}
    • Profile picture of the author sharmakamal
      Both have its importance and advantages.
      Java is a vast field but PHP is not.
      PHP is cheap to create website so it is preferred over java.
      {{ DiscussionBoard.errors[5396112].message }}
    • Profile picture of the author tomlayer
      I think both are important for developer but there are some difference between them which are mentioned you can say java is best.
      php is open source you can use php without license
      java which is developed by sun micro system so you need to valid license for doing work.
      java can provide better Tech support for software development.
      java can give the more security than php
      java coding is more complicated than php
      php is best for small project
      java is best for large project
      you need java virtual machine platform for working in java
      you can easily download dreamweaver for php development
      mostly mobile phones use java applications for security purpose
      we can give more authentication by java such as games, software etc
      so java is better than php..............
      {{ DiscussionBoard.errors[5530101].message }}
  • Profile picture of the author jollyjenes
    The Java language is difficult to compare learning points, then PHP is the point of Java is a good study and work more PHP PHP, because a lot of software development in Java and Web development. Java is a good validation process.
    {{ DiscussionBoard.errors[4912803].message }}
  • Profile picture of the author aricajwalker
    I think PHP is better than JAVA. PHP is originally designed for web development. PHP. PHP is the programming language is object oriented and all major web technologies development. For best performance combination of Apache and PHP is more appropriate than others.
    {{ DiscussionBoard.errors[4932198].message }}
  • Profile picture of the author rainso0
    PHP is better for small web development applications and websites, and we can easily get customized solutions and platforms for php through which one can easily manage the website. Whereas Java is good for desktop as well complex applications and data management is quite complex in case of Java.(JSP's)
    {{ DiscussionBoard.errors[4944003].message }}
  • Profile picture of the author synergyxtr
    if your criteria is performance then php might be a better language. if you plan on regularly updating for a long time then a more structured java framework may be useful.
    Signature

    Synergy Extreme. Your extreme virtual assistant provider.

    {{ DiscussionBoard.errors[4946460].message }}
  • Profile picture of the author kavinbill
    PHP and java both are the best programming language but the thing is which language you like the most. According to me Jave is one of the best programming language and it has a more demand.
    {{ DiscussionBoard.errors[4959927].message }}
  • Profile picture of the author elexonmathew
    PHP and Java both are the best language. In today's time the demand of these language is very hight. According to me PHP is best and more beneficial also.
    {{ DiscussionBoard.errors[4964427].message }}
  • Profile picture of the author amankumar
    Both are the best.PHP is server side embedded scripting language.It generate the dynamic webpage.Java is run time environment also known as JVM.
    {{ DiscussionBoard.errors[4964700].message }}
  • Profile picture of the author pfreelancer
    For web programming for a whole site, I would recommend PHP, but if you have a site and want to add to its functionality, JavaScript may be the way to go. It really depends on what your needs are.
    {{ DiscussionBoard.errors[4965424].message }}
  • Profile picture of the author NewDeveloper
    Php has no competition with java. With Java , you can do virtually nething! Php is only focused on web d.
    {{ DiscussionBoard.errors[4976625].message }}
  • Profile picture of the author howtodone
    Originally Posted by divontop View Post

    Friend can anyone tell me about these both language that which is best with allover performance ?
    Java very difficult to learn and use,I learned about Java (JSP) but now i use php because php easy use on all window or linux.
    {{ DiscussionBoard.errors[4978793].message }}
  • Profile picture of the author gtownfunk
    I'll say this much.. it totally depends on the application and the platform. For most small websites, there is zero reason to consider java. For some larger scale websites, java is doable.. but rarely the best choice. IMHO java's place is in middleware and widgets.
    Signature
    {{ DiscussionBoard.errors[4979144].message }}
  • Profile picture of the author Nail Yener
    This is like comparing apple to pear.
    {{ DiscussionBoard.errors[4982734].message }}
  • Profile picture of the author AksGame
    Both are very good languages i recommended both of them
    {{ DiscussionBoard.errors[4982741].message }}
  • Profile picture of the author NewDeveloper
    I think at this point of time, it important to distinguish between Java and JSP also.
    {{ DiscussionBoard.errors[4982791].message }}
  • Profile picture of the author aniket1988
    There is nothing like best when it comes to development. Choosing the best tool is what matters. PHP is good when relates to website development to dynamic sites.

    Java is very good for application development purpose. JSP is a very good part of java, but getting degraded now a days. Java is also useful for application development for handheld & other small devices. (J2ME)
    {{ DiscussionBoard.errors[4998433].message }}
  • Profile picture of the author alecdisuza
    I like Java is the best programing language.Java language coding help to make computer games.Java coding also helpful to make mobile graphics.
    {{ DiscussionBoard.errors[5019005].message }}
    • Profile picture of the author juanita2
      Well, I think PHP is better and easy language. With PHP, you can create dynamic websites with fun, interactive tools and features, such as discussion boards, photo slide shows, and local weather updates. It is a pleasant experience as the first step in the programming world. The character combined with its easy online potent enough to leave you stunned.
      {{ DiscussionBoard.errors[5032686].message }}
  • Profile picture of the author brianlmaule
    Php is better than java
    {{ DiscussionBoard.errors[5032698].message }}
  • Profile picture of the author seomagic
    It really depends on your requirements for the web most of the time php is good to develop websites
    {{ DiscussionBoard.errors[5033291].message }}
  • Profile picture of the author linkmonster
    For me PHP is Good its easy to understand. I love PHP scripts to design websites.
    {{ DiscussionBoard.errors[5047824].message }}
  • Profile picture of the author SeeSharp
    You can't compare PHP and Java, both are designed to do different things.
    PHP runs on your webserver, orgainzes and then gives a reply back to the client with info.
    While in java, anything takes place on the client's pc so you need to know what you want to do with it so you can decide what's best for you.
    {{ DiscussionBoard.errors[5048274].message }}
  • Profile picture of the author johnyj
    Java is much better than PHP...i always use java
    {{ DiscussionBoard.errors[5048317].message }}
  • Profile picture of the author sitecontact
    Lol... PHP is the greatest invention in the Internet world for the last years. It's easy, understandable and you can create great things with it! Why isn't Facebook written in Java, what do you think ?
    Signature
    businessideaslab.com

    largebusinessideas.blogspot.com - The stories of some big business ideas.
    {{ DiscussionBoard.errors[5048394].message }}
  • Profile picture of the author omy123
    Why this discussion? You cant compare both of these languages.. Php and Java, first of all php is not a lannguage, its scripting languange, and java is full flashed language.. Both of them have some great use in their respective fields..
    {{ DiscussionBoard.errors[5048425].message }}
  • Profile picture of the author Jackallen1
    Both Languages are good for me .....
    {{ DiscussionBoard.errors[5054128].message }}
  • Profile picture of the author davidscamron
    I would suggest you PHP. If you are beginner and want make websites then PHP is best choice for you. PHP is very easy to learn and open source language. Jave is very tough compare to PHP. Java is used for developing robust and platform independent application.
    Signature
    {{ DiscussionBoard.errors[5071145].message }}
  • Profile picture of the author pace160
    it will depand on pupose of project work but jave is best
    {{ DiscussionBoard.errors[5071440].message }}
  • Profile picture of the author gid86er
    For me, it really depends on what you are trying to achieve with both programming lange. It is it easier to grasp PHP and you can also find alot of free resources.
    {{ DiscussionBoard.errors[5079819].message }}
  • Profile picture of the author lambcrazy
    According to me you can't compare two languages just by saying there name ,if you want to compare two languages you must implement them on the same subject and then only you can see which is give you more benefits. then,only you can compare the languages ...
    Signature

    {{ DiscussionBoard.errors[5081153].message }}
  • Profile picture of the author monib
    its depend on your purpose and need if you make a web site the structure should be made in php if you want design it then you can use the java,so in my point php is much better than jawa
    {{ DiscussionBoard.errors[5081686].message }}
  • Profile picture of the author ericbryant
    PHP for Wordpress hacking/tweaking, Java/Javascript for special functions.
    Signature
    www.CoreZero.com
    - Social Media Marketing Strategy & Consulting

    - Custom Wordpress Website Design & Blogs

    - Wordpress Speed Demon? Click Here!

    - Live the life you love... now!
    {{ DiscussionBoard.errors[5084002].message }}
  • Profile picture of the author James90210
    I would go fit php, if you want a quick start to a web site, start off with a platform like Wordpress or Joomla! and develop your own plugins, that way you get all the common web requirements like logging in for free.

    Plus you can then share your work.
    {{ DiscussionBoard.errors[5091962].message }}
  • {{ DiscussionBoard.errors[5092292].message }}
  • Profile picture of the author watsondavid
    Both are well known and well popular language and each of it's has it own feature. Php is a technology and it is used for web development. while Java is language and it is used for application development. PHP is open source product while Java is product of Sun Micro System.
    {{ DiscussionBoard.errors[5093150].message }}
  • Profile picture of the author joanah
    Web development - go PHP. It's easier to understand but it depends on how you want to use it. I find Java difficult to learn but it's great if you will learn it.
    {{ DiscussionBoard.errors[5136717].message }}
    • Profile picture of the author Miley455Cyru
      Both are very good languages i recommended both of them
      {{ DiscussionBoard.errors[5246825].message }}
  • Profile picture of the author michaelcook2003
    Both languages serve their purposes. If a programmer is proficient in both languages, then PHP is almost always quicker to prototype with. First and biggest difference, you don't have a notion of application in PHP. Each page is a script, executed in its own memory environnement. That means PHP is great for dynamic web site, whereas server Java is for server-centric applications, which is a different class of problem.
    {{ DiscussionBoard.errors[5225982].message }}
    • Profile picture of the author flashcontent
      I use both of them. For me java is good for big application or for corporate
      that have many important transactions, because java provide many API for
      security, but java also need big resources.

      php is very good if you just want develop personal websites or small-mid
      websites, because it doesn't have big resources and you can quickly develop
      your application/website.
      {{ DiscussionBoard.errors[5226674].message }}
  • Profile picture of the author satz27
    I reckon he meant to ask PHP or JAVA SCRIPT isn't it?
    {{ DiscussionBoard.errors[5264176].message }}
  • Profile picture of the author Super Warrior
    First tell me which one is better Pastry or Patties?

    Thanks
    Signature
    WARNING:: Wasting time on Facebook? Make $500 in just 24 Hours with this simple strategy!
    Get Free PDF (Direct download, no opt-in required)-->> Read It Now
    {{ DiscussionBoard.errors[5265329].message }}
  • Profile picture of the author Kom
    I think both of them Good.

    I use Both Of them..
    {{ DiscussionBoard.errors[5265359].message }}
  • Profile picture of the author dearfriendvn
    I think you should clarify your question to be "what is best for what?". Because php is for web programming and java is for bigger thing. So each one is better than the other when use in appropriate case.
    {{ DiscussionBoard.errors[5268708].message }}
  • Profile picture of the author L0cal
    i am php coder but i don't like php sometimes , of course java is better bacause java can create program for desktop application. java is for server side and client side... but php just is for server side.
    {{ DiscussionBoard.errors[5270214].message }}
  • {{ DiscussionBoard.errors[5270659].message }}
  • Profile picture of the author Ikmal Syifai
    PHP is a great programming language, especially if you're an internet marketer.
    {{ DiscussionBoard.errors[5271048].message }}
  • Profile picture of the author sandebdavid
    The answer is simple, PHP is easier to learn and use while Java is more interesting to learn and use.
    Signature
    "For everyone somewhere there is a piece of heaven on earth"
    {{ DiscussionBoard.errors[5295982].message }}
    • Profile picture of the author Jeff Chandler
      If you're new to programming, definitely PHP. Most shared hosting accounts support PHP. Java is great, but is much more complicated for someone new to development to learn. You'll also need to make sure that your hosting provider supports it. Java requires an app server like Tomcat to be running on the web server in order to deploy your java apps.
      {{ DiscussionBoard.errors[5298528].message }}
  • Profile picture of the author remymartin1
    PHP is much simpler, Java is for banks, goverment and big companies
    {{ DiscussionBoard.errors[5306441].message }}
  • Profile picture of the author remymartin1
    Java is much havuer and takes more time to learn. PHP - it took me 20 minutes to start programming
    {{ DiscussionBoard.errors[5306450].message }}
  • Profile picture of the author nwutopia02
    There is no real absolute answer to your question unfortunately, because both languages have their pro's and cons.
    {{ DiscussionBoard.errors[5395805].message }}
  • Profile picture of the author gaetanoc
    it is quite an open ended question to reply but here's my 2cent ;-)

    For some PHP might be better since it is more rapid - you open up an editor place some statements, put them on a web server and you start seeing results.

    Whilst PHP is very very powerful and there are millions of websites running on PHP, Java is more robust, more salable and there are more projects that you can use to enhance and build your projects with.

    But as has been said - it really depends on your capabilities, skills and what you want to achieve :-)


    I have worked with both: for small project I will opt for PHP. For larger projects I will go for Java
    Signature
    An experienced technical programmer wants to JV with you


    I will build any kind of software, bots, web applications, desktop applications, mobile applications - you will handle marketing and sales.
    {{ DiscussionBoard.errors[5396661].message }}
  • Profile picture of the author wondershar
    Originally Posted by divontop View Post

    Friend can anyone tell me about these both language that which is best with allover performance ?
    Hi in present PHP is mostly much better then JAVA because in business market everyone prefer to php.
    {{ DiscussionBoard.errors[5402272].message }}
  • Profile picture of the author gaetanoc
    @jasonbourne9839 - PHP has OOP constructs which you can use


    @wondershar - Good point - if in business a language is preferred more than an other then it is considered to be better. But rest assured that in some areas Java is considered a standard
    Signature
    An experienced technical programmer wants to JV with you


    I will build any kind of software, bots, web applications, desktop applications, mobile applications - you will handle marketing and sales.
    {{ DiscussionBoard.errors[5402305].message }}
  • Profile picture of the author denownswarms
    If you talking regarding website development than PHP is very best, it is website development language and it is free open source language, it is very best with combination of mySQL database also.
    {{ DiscussionBoard.errors[5415007].message }}
  • Profile picture of the author optionsbinary
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[5441252].message }}
    • Profile picture of the author Buum
      PHP is better for internet marketers in most cases. Java is better when you want to make platform independent software. PHP is faster for websites
      {{ DiscussionBoard.errors[5441266].message }}
      • Profile picture of the author Anthoni
        I see a lot of these type of questions on here and it puzzles me greatly.

        However, like everyone else has said it would all depend on what you are wanting to achieve. If it's a dynamic website then I would say go with PHP, however if it is a local based application then Java is the better out of the two. Although not the overall best for desktop applications, but that is another question entirely and one I am sure will appear on here eventually.
        {{ DiscussionBoard.errors[5441901].message }}
  • Profile picture of the author Magento developer
    I suggest you to take php, its easier to manage compared to java.
    {{ DiscussionBoard.errors[5448914].message }}
  • Profile picture of the author coolsharad
    I think both have equally good.
    {{ DiscussionBoard.errors[5449797].message }}
  • Profile picture of the author spaassurance
    Both language has its own importance, it completely depends on your comfort level. Some people think Java as easier whereas for some people the case is viceversa. It all depends on how deep you want to go with a particular language.
    {{ DiscussionBoard.errors[5454503].message }}
  • Profile picture of the author Damien Roche
    Without a shadow of a doubt, Java.

    You also need to think about long-term security and earning potential. Everybody knows PHP, the market is saturated with PHP developers. Java is more enterprise and Java based positions generally pay more. If you went into employment, almost all large companies are looking for Java developers.

    Take a look at Ruby and Python as well.
    Signature
    >> Seasoned Web Developer (CSS, JavaScript, PHP, Ruby) <<
    Available for Fixed Fee Projects and Hourly ($40/hr)
    {{ DiscussionBoard.errors[5454843].message }}
  • Profile picture of the author Ibcontact
    Both languages working purpose is different.
    {{ DiscussionBoard.errors[5455261].message }}
  • Profile picture of the author wilianto
    I think PHP is better for website developement. But you'll be better if can use both of them.
    {{ DiscussionBoard.errors[5456475].message }}
  • Profile picture of the author web_dev
    Definitely PHP is better. It is free and lots of resource online if ever get stuck.
    {{ DiscussionBoard.errors[5457932].message }}
  • Profile picture of the author wasabi20
    Originally Posted by divontop View Post

    Friend can anyone tell me about these both language that which is best with allover performance ?
    You can't compare PHP & Java because PHPO is server-side and JAVA client-side.

    You can use these 2 language in combination. There is very powerful.

    I hope this help
    {{ DiscussionBoard.errors[5486962].message }}
  • Profile picture of the author victorjhon
    Both are the best but my favorite is PHP.
    {{ DiscussionBoard.errors[5493099].message }}
    • Profile picture of the author forexmouse
      I think PHP is better for small and medium web projects. PHP is born for web while Java was invented for application programming, then the Java developers added support for web but it is cumbersome and I hate it.
      If you have a big project, Java could be better in performance because Java Enterprise is more scalable then PHP.
      {{ DiscussionBoard.errors[5493249].message }}
  • Profile picture of the author jigonesome
    It is depends on requirements and if you are selecting PHP language for development than mySQL database is very suitable with PHP language, if you are selecting JAVA language for development than msSQL is very suitable with JAVA language.
    {{ DiscussionBoard.errors[5498124].message }}
  • Profile picture of the author Nochek
    It depends on what you actually want to do with your language. If you want to create awesome, secure, server run applications then PHP is the name of the game. If you want dynamic, user-oriented, and potentially malleable products then Javascript is the way to go.

    What is important to note, in either case, is that neither of them are really important anymore. What is truly important is your syntax for HTML5 to insure that you run equally well for both mobile and desktop based products. A well designed HTML5 website can now run just like a native app on most mobile systems, as well as many desktop browsers (IE, Chrome, and Firefox all have extensible HTML5 native-support).

    But to truly have a secure and dynamic HTML5 website, you are going to need PHP, Javascript, as well as the basic HTML5 and CSS3 knowledge needed to put together a proper application.
    Signature
    Nochek Solutions Presents:
    The Hydrurga WSO - Rank Your Site #1 And Score Over The Penguin Updates!
    {{ DiscussionBoard.errors[5498664].message }}
  • Profile picture of the author Nochek
    Originally Posted by madhuriarora View Post

    PHP is the best more cheaper than java and good features.
    Yes, I do really hate Java's high price tag, as well as the inability to connect to my WiDi on my laptop like PHP does.
    Signature
    Nochek Solutions Presents:
    The Hydrurga WSO - Rank Your Site #1 And Score Over The Penguin Updates!
    {{ DiscussionBoard.errors[5505393].message }}
  • Profile picture of the author mapetshi
    depends on the purpose
    {{ DiscussionBoard.errors[5505693].message }}
  • Profile picture of the author MirInfotech
    Depends mainly on the purpose and what you want to achieve. Both are great tools.
    {{ DiscussionBoard.errors[5528909].message }}
  • Profile picture of the author mortenmatras
    It's a religious war. ;-)
    {{ DiscussionBoard.errors[5562219].message }}
  • Profile picture of the author syaya
    I recomended Java because java can run on dekstop, mobile and web, but PHP easier than java..
    {{ DiscussionBoard.errors[5569628].message }}
  • Its PHP if you are focusing web development.
    Signature
    {{ DiscussionBoard.errors[6311429].message }}
  • Profile picture of the author abdurrahman
    php is easy to learn but java is vast compare to any programming language
    baut it depend upon u what u want to do.
    {{ DiscussionBoard.errors[6312594].message }}
  • Profile picture of the author Tony Cossio
    Depends on what you are doing of course. PHP is the standard in web development, and Java is good for Mobile Apps.

    This is apples to oranges, a better question would be Java vs C# and PHP vs ASP.net.
    {{ DiscussionBoard.errors[6313816].message }}
  • Profile picture of the author mcygnet
    Hello..
    Compared to PHP Java will lead however the comparison is not very good here because they are both very different..
    {{ DiscussionBoard.errors[6337689].message }}
  • Profile picture of the author SandyUgale
    I am not sure what exactly your pupose behind this question? Would you like to learn or you like to developed something ?

    Apart from this its totally depends on for what is your aim like if you like for mobile then Java would be best..on other hand you just want to make quick website then PHP is better after all benefit is open source solutions such as WP,joomla..etc.

    But if someone ask me to compare all aspects then I must say JAVA is the good ..becusae statistics shows JAVA has worls class application which PHP probably doesn't have..but every man has own choice but if you like to learn then must start with PHP because JAVA is advance than PHP.
    {{ DiscussionBoard.errors[6786996].message }}
  • Profile picture of the author Cashmatic
    Java for standalone app, php for web based. A mix for both.
    {{ DiscussionBoard.errors[6791789].message }}
  • Profile picture of the author YemTv
    Some people like Java and some like PHP, everyone is professional in their own field.it depends on you which field you like. i recommended you both,choice is yours.
    Signature
    CBDISCOUNTS - Clickbank Discounted Marketplace
    Magic Article Rewriter - SAVE $24 OFF!
    {{ DiscussionBoard.errors[6791873].message }}
  • Profile picture of the author Barryemuncy
    PHP is best.PHP stand for php hypertext preprocessor. php programing language is easy language.HTML tags use in PHP.this web page using post method.php is HTML script.PHP offers many advantages-it is fast,stable,easy to use and open source.
    {{ DiscussionBoard.errors[6792058].message }}
  • Profile picture of the author NeoGills
    I would go with with Java
    I start learning first HTML then i learned Java , em not a professional but just know little bit about it.
    {{ DiscussionBoard.errors[7186377].message }}
  • Profile picture of the author Nicholasamarquez
    Java is a programming language created by Sun Microsystems. Java is used mainly in the Internet and uses a virtual machine that has been applied in most browsers to turn Java into a specific application on different computer system.
    {{ DiscussionBoard.errors[7196228].message }}
  • Profile picture of the author dexlink
    Though both of them are founded on object oriented feature but in application level those have completely different taste and appeal. PHP is a scripting language used for web based programming. Java can be used almost for all purpose.
    {{ DiscussionBoard.errors[7208384].message }}
  • Profile picture of the author rising_sun
    Banned
    For website and service PHP is the best ,
    and for stand alone and game programming JAVA is popular.
    {{ DiscussionBoard.errors[7215667].message }}
  • Profile picture of the author Sim875
    What do you want to do with php and with java? Thats is a question&
    Signature

    hello =)

    {{ DiscussionBoard.errors[7215677].message }}

Trending Topics