I am a beginner with web programming. I want to know whether I should start by learning PHP or Javascript? What are the respective benefits and drawbacks and difficulties? I only know that PHP is a server-side scripting language and Javascript is client-side. Is it enough to know any one of them or both are required? Any guidance will be much appreciated.
Both go hand in hand. I suggest learning in this order html > css > php > javascript as html, css & php are required to make a website where javascript is just an extra.
I would suggest you to pick up both eventually. You may want to start off with PHP and do stuff like validation on the server side. Then pick up JavaScript along with Ajax to make your site more interactive
They are independent languages Javascript is client side , php is server side you need to learn both .
Thanks everybody for your helpful replies. What would be the best place in the web to start? I am consulting w3schools.com right now. But the total amount of materials seems limited there. Can you suggest some other site with FREE, but comprehensive tutorials, please? I have seen the official PHP documentation, but I am looking for a more application oriented approach.