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?
5 Answers
+ 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.
+ 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.
0
Very good answer
- 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 :)
- 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).