Php or javascript which is better? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Php or javascript which is better?

PHP and JavaScript which language we should study so that it can help us in creating a web page .please answer asap

14th Dec 2016, 5:42 AM
Rajesh singh shekhawat
7 Answers
+ 2
php and javascript are mostly used for different things. For example javascript being a client-side language is used to manipulate the visual elements of a website to add dynamic effects for instance what happens when a button is clicked or when the mouse is moved. On the other hand php is used as a server-side language and would be used to say validate a login form or send the user an email with their new password. So which language you need to learn depends on what your website needs but because of a piece of software called node.js you can actually run javascript server-side as well as client side. Personally i'd recomend that you learn both so that you can come to grips with both sides of web development.
14th Dec 2016, 5:53 AM
Blazing Code
Blazing Code - avatar
0
thank-you for providing the information
14th Dec 2016, 6:05 AM
Rajesh singh shekhawat
0
no problem
14th Dec 2016, 6:16 AM
Blazing Code
Blazing Code - avatar
0
if we want to design a website how can we do it and put on Google.
14th Dec 2016, 6:18 AM
Rajesh singh shekhawat
0
thats a bit more difficult, I think that involves something called adWords which is a pay-per-click service not to mention that to get it on the internet you'd need to set up a web server or buy hosting
14th Dec 2016, 6:21 AM
Blazing Code
Blazing Code - avatar
0
I know about hosting but how can we set a webserver ?
14th Dec 2016, 6:24 AM
Rajesh singh
0
if you have hosting you don't need a web server. setting up a web server just means hosting your website on your own computer instead of a private one that a company will give you access to in exchange for money
14th Dec 2016, 6:36 AM
Blazing Code
Blazing Code - avatar