+ 4

Php and Javascript

I am going through the PHP lesson and I am about 1/3 through it and it seems very similier to Javascript. My question is, is PHP just a sever side Javascript? If there are hudge differences could you make me aware of them. Really, I guess I am asking what makes PHP so special. Thank you for any information that you have given me.

28th May 2018, 8:50 PM
Bradley
3 Answers
+ 10
I found a lot of interesting answers here: https://top.quora.com/How-different-are-Javascript-and-PHP https://www.guru99.com/php-vs-javascript.html https://stackoverflow.com/questions/6369313/difference-between-javascript-and-php I believe an actual Server Side JavaScript would be Node.js. "Node.js is an open-source, cross-platformJavaScript run-time environment that executes JavaScript code server-side." https://en.m.wikipedia.org/wiki/Node.js Comparing node.js with php https://www.netguru.co/blog/nodejs-vs-php I hope these help.
28th May 2018, 10:44 PM
Koketso Dithipe
Koketso Dithipe - avatar
+ 5
Yes, since Node.js came 2009 you can also use JavaScript for backend dev. However, PHP is in my opinion just a bit simpler to setup and use than Node.js. The LAMP stack (Linux, Apache, MySQL, PHP) seems to be still more popular and therefore better documented and supported. But the MEAN stack (MongoDB, Express.js, AngularJS) with JavaScript backend has one big advantage, its incredible fast. I recommend for smaller projects the LAMP stack and for big projects the MEAN stack.
28th May 2018, 10:53 PM
Franz
Franz - avatar
+ 1
Conection with servers .
29th May 2018, 1:38 PM
Alan Carreño Fiestas
Alan Carreño Fiestas - avatar