Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Useless???


ghost's Avatar
0 0

I know it's not really "programming", per se. But if you know PHP is it ever necessary to know more the basics of javascript, they seem to be able to do all the same things (though PHP can do more).

EDIT: I just realized a few advantages JS has over PHP but it still seems to be nowhere near as useful.


ghost's Avatar
0 0

yes. Learn the basics of javascript. It's useful.

And if you already know php it should be a piece of cake. Take a look at w3schools. (http://www.w3schools.com/js/).


ghost's Avatar
0 0

JavaScript and php shouldn't really be compared to eachother… each are used for other purposes. JavaScript was designed mainly as a browser-interpreted language that can add pretty effects to your page and make forms n cookies. Php was designed as a more powerfull script for other purposes…


ghost's Avatar
0 0

Unless you were talking about AJAX which is a sweet combination of them both xD


ghost's Avatar
0 0

-The_Flash- wrote: Unless you were talking about AJAX which is a sweet combination of them both xD

But PHP is still best used server-side. Javascript is for client-side computations and the sorts. An intergration is really just using Javascript to take input, and pass it to PHP.