JavaScript VS. PHP, which is better for web designer?

  • Thread starter Thread starter michael j
  • Start date Start date
M

michael j

Guest
Depends on the application.
JavaScript is a client sided scripting language.. it's usually used in situations where a certain action needs to be performed without a page reload. Your code will be executed after the page has been loaded.

PHP is a server-sided scripting language, to run PHP you're gonna need a webserver that can process PHP code. Your code will be executed before any data gets sent to the client. Hence it's meaning: PHP Hypertext PRE-processor.

I agree with the first two answers, in modern day web applications you would probably need both a client and server sided scripting language.
 
I want to be a web designer, which programming language is more important or which should I try first?
 
Back
Top