+ 3

Javascript vs. PHP

I learned PHP, what is the difference between PHP & Javascript? I never learned Javascript.

19th Feb 2017, 1:41 PM
Jacob Givler
Jacob Givler - avatar
6 Respostas
+ 13
well.... JavaScript and PHP both these two serves different purposes. While JS is used for client side scripting and PHP is used for server side scripting. Simply, JavaScript codes are executed by your web browser, like simple calculations . Your browser does all the processing. on the other hand PHP runs on the server, where your webpage is stored. The server computer does all PHP processing and it sends the result to your browser. although these two are totally different in many ways so comparison of client and server doesn't make any sense..
19th Feb 2017, 1:54 PM
sonali
sonali - avatar
+ 5
JavaScript is client side scripting language whereas php is server side programming language.
19th Feb 2017, 2:32 PM
Kamran Shahzad
Kamran Shahzad - avatar
+ 3
however , i am not perfect in PHP. i prefer it more than javascript
19th Feb 2017, 6:03 PM
Mohammed Qabbari
Mohammed Qabbari - avatar
+ 3
I am one of those people who obsessively love to learn new things, I got up today, started my day as usual and took on the challenge of learning Javascript and I have found that Javascript and PHP go together almost as perfectly as peanut-butter and jelly. I have found the exact differences myself. In a nutshell: if using together on top of the usual HTML & CSS, it can give your website more depth and the like. I actually took what you guys said as a challenge to learn something that I have tried before and haven't gotten the concept of and used a book I had bought from way back in the day when I was first daring enough to go through with this endeavor. I have now gone from loops where I was stuck to almost done in the last 4 hours. I am trying to learn to code to both save me money and make me money one day. I am first going to use it for myself and to build myself up and to make a respectable blog for myself and then go onwards. Making a business/living off of coding is not in the cards for me right now so to speak. I just finished setting up a code for a friend's blog on WordPress and denied royalties and became the ghost developer for him just to gain a positive reference.
19th Feb 2017, 11:25 PM
Jacob Givler
Jacob Givler - avatar
+ 3
i finished js and jquery and i love each equally. i use all 3 as needed.
20th Feb 2017, 7:44 PM
Jacob Givler
Jacob Givler - avatar
+ 2
PHP is an object oriented and server side language while JavaScript is a client side language ( a different thing when node JS is being used) you can mainly manipulate the DOM elements, process data and and a lot of awesome features. it goes along with HTML and CSS to create cool stuff and make the user experience more intuitive and seamless. There are even huge framworks like React JS ( used on whatsapp web and facebook) that are pretty advanced and unlock a whole new set of possibilities. It's fairly simple to learn and yet, so powerful! Happy learning :)
14th Jul 2017, 2:44 PM
Rachid Snowrise
Rachid Snowrise - avatar