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.
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.