0

What is better for write a web? Javascript or PHP?

I have doubts... If I want to do a web programming the sourcecode, what could be a better language?

24th Nov 2016, 1:23 AM
Magda Gamboa
5 Antworten
+ 44
They are different programming languages. PHP is server-side, programs in PHP are executed into web-server and they writes html-code that will be interpreted on navigator. But Javascript has a contrary filosophy, usually programs in Javascript are executed into Navigator and use resources of PC's user.
24th Nov 2016, 1:24 AM
Jose
+ 1
it depends on situation. PHP can only use to write server side progran. That is, User can't feel PHP. While JavaScript can use as client side and server side with the help of Node.js. If you are planning beyond web development, I will prefer Python language.It has excellent features over PHP and majority of new project are done on Python. If you are planning to join an existing group or freelance PHP may be better.
24th Nov 2016, 2:35 AM
Anil Krishna Raj
Anil Krishna Raj - avatar
0
Very good answer
24th Nov 2016, 1:31 AM
Michael Robertson
- 1
I would say Javascript because youre able to use it on serverside as well as on clientside. Serverside you can use node.js to handle the serversided javascript. Nevertheless it would be the best to know both languages :)
24th Nov 2016, 3:04 AM
Khadim Fall
Khadim Fall - avatar
- 2
Exactly, PHP is oriented server but Javascript is used for scripting in Navigator side (sometimes Javascript is used for server scripting, too, but is not often).
24th Nov 2016, 1:48 AM
Passion