There are many languages to develop applications. Many MNC's are using java and .net to develop applications. PHP is another language which is used to develop webpages. You have choose language such way that which having more opportunities in present market.
PHP is basically using for web development and java for application development. So you have to decide first what is your need.
Both are different programming stuffs. PHP is more web based while Java is more than that. I suggest learning Java since it's more of a programming language.
PHP and JAVA are both web capable programming language. It's just that JAVA (spring framework, hibernate etc) are mostly used for corporate systems like banks etc.
both languages are important in website development .PHP is main language which you require in order to code your website. And For Design you can use HTML, DHTML/CSS. This best language for web design and development.
I would say Java because PHP is limited to web development, and with Java you are not limited to web development (full blown applications, server side programming, mobile phone development, ect...). Don't get me wrong the web is very important however I sure don't have a crystal ball and I can't tell you if 20 years down the road the web will play as much, or more, of a role it plays today.
Java and its related technologies would be my choice. But it cannot match the ease with which you could get your small web app running in PHP. PHP runs on Apache to serve java requests. Most of the content management systems run on PHP. The languages have evolved pretty much the way it has been used for. On a side note, the look and feel of a site has got nothing to do with java or PHP. If you have a decent CSS, you've got a good looking site. It goes into PHP's favour that web designers are more comfortable with PHP. PHP is open source with great benefits to the eCommerce development.
If you have PHP (the interpreter) installed, you can run a PHP script without compiling it. (Yes, it takes an extra step, but so does running a .net 2.2 app.)
I think python, or perl would be better alternatives to web development than java. While java is good in its own right, and powerful.... Compiling war's every time you want to serve something, or setting up applications with its web server are a pain in the butt... Not saying django(python) is too much easier, but I don't HAVE to recompile my python files every time. Perl is pretty straightforward as a cgi, but on this end... PHP is pretty much universal and works the easiest, everywhere.
Hi bro I think if you like pure object-oriented then you should choose Java but I think that PHP is way simpler. They both powerful though.
I disagree, it's a bit ignorant to claim there is no legitimate cause to use compiled PHP. Personally I have no cause to use compiled PHP because I've studied several languages although developers with proficiency in PHP only would be very thankful they have the ability to access the other half of development. Remember the .NET framework was built under the entire premise that developers of a wide range of languages, from FORTRAN to Python can implement the windows assemblies, the idea is not new at all. These days there are all sorts of niches for all types of interesting implementations, from PHP mobile games/apps to CCTV management systems.
Valuable post that he has soared and i have learned lot here. Can you guys tell me also about html5. I heard that its currently in an excellent form for videos and someothers and it overtakes the popularity of flash. Because flash take too much time to load but in html5 we don't need to bother about loading. Eventually, pls suggest me about new elements and attributes in html5... I'll be staying here...
But still flash is still cool and don't worry about the loading time you just need to optimize the contents to get the best quality and less size. Adobe made a wonderful addition to their Flash CS6 they added HTML5 support it's just amazing.
Although HTML5 is the best now I can't believe the new features they're amazing. You check out the new FLASH CS6 feature in Adobe TV, it supports HTML5 now.
PHP is good to learn because it's easy and open source language and we can easily understand that. But As per latest market scenario i would like to suggest you to learn about JAVA and Android based language because its in demand.
I believe KnowledgeBlackbelt is built using Vaadin, which is a Java-based framework. I'm not sure of the quality of the website though. It looks really nice, and has a lot of fancy features, but it's also often extremely slow.
Yes I agree friend Learning object oriented is a demand if you think about it you'll see that it's really taking a huge space in programming world.