i just want to learn programing language but i dont know how to start ? is the php is the best way to start or java because it is more powerful ? i appreciate your help thanks
it depends entirely on what you want to program both languages have similar syntax, php is a little less strict, but you should learn what you need
It depends on your goals. I think php is more conventional and standard ... for instance you write a website in java and you want to sell your code or website, the pool of buyers interested in java source would be significantly less. You want to host your server ... less options if you need java hosting. If your company expands and you need to add on new employees to help program, you're not going to find java programmers as easily as you'll find php programmers. The learning curve may be less with PHP (honestly I don't know JSP that much). About 10 years ago I was at this position, I was trying to decide between PHP, ASP and (at the time) Allair's Cold Fusion. I picked PHP because I deemed it was the most standard, cheap (free), I would be more employable with the skillset, and the sites I designed would be more maintainable by others. My goals nowadays are designing (for the most part) my own websites, keeping costs low. My sites typically don't average over 100k pages, and I still think PHP is the best choice for those goals. On the other hand, if you want to work for a fortune 500 company, you're looking for big cash salary, you want to be virtually irreplaceable at your job, you're going to be working on huge projects that require superior enterprise architecture, java may be for you. I'm certain there are proponents of java out there, I'm also certain there are fewer of them than PHP proponents.
Depend on whether you want to work on application programming(application running on pc, mobile phones,etc) or web programming(application running on web server ) ?
JAVA is Far far better than PHP. php is server side scripting language. not good for application program. Like mobile games,windows tools. Etc. But Php is very simple and good for earn money quickly.... but if you want to take good taste of programming. then go with java.
It's better to start with JAVA language, because it will be much easier for you to test and debug your programs. I recommend you to download JDK from http://java.sun.com/javase/downloads/index.jsp and NetBeans IDE from http://www.netbeans.org/downloads/
Maybe I should add a third option: pascal.it is a very good and simple language to start, and you will learn all the points that you need to learn in every programming language (ok, maybe not a functional language).
It doesn't matter. If you want to build web apps, use PHP (but you can also use Java). If you want to build desktop apps, use Java (but.. you could use PHP if you were so inclined). People are going to tell you what their favorite language is, so you're not going to get any objective answers. Pick a language, any language (ok.. almost any language), find some tutorials, and write some code. That's how you learn. Don't get stuck in the process of picking a language. It's not as big of a deal as people let it on to be. It just seems that way because people stand by their favorite tools with such fervor.
I personally learned them in this order. C, C++, Java, PHP, Ruby ... If I started with PHP first I probably would have learned nothing of real programming concepts such as Object oriented or abstraction and that sort of thing. When using PHP the temptation is just to make something that works and not care about style re-usability or anything else. So I would suggest you learn java first unless you want to start building website right away. With java you are forced to use classes and interfaces and that kind of programming style. For starting to learn java I suggest you purchase a good java book and download bluej It's a simple IDE for beginners. Let me warn you though it is really simple once you've stated to master Java you want to switch to a real IDE like netbeans.
For beginner like you, I suggest you learn php first, after you get familiar with programming stuff you can move on to learn java
For web design, go with PHP - maybe I'll hire you. BTW: WordPress (popular as h@ll) is mostly done with PHP
As a few others have said, it depends on what you want to do. Both languages are tools to build some sort of solution or application. Pick the right one for the job. Depending on what your interests are, learning the fundamental concepts such as data structures and OOP are more important. Once you learn the concepts with a language you can migrate to other languages. Java will be a better learning language. In terms of web apps php is standard in most free software (wordpress, joomla, phpbb forums, etc..).
Java is crap, and PHP isn't too far behind it. I still love PHP, but Python is much better. I'd suggest teaching yourself Python and then learning Django or something.