MyBB Community Forums

Full Version: JavaScript or PHP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi Friends,
Yesterday i Started a discussion "How to Create PHP Pages?" and some users help me lot of. Thanks to all users!
now i want to know that which is better JavaScript or PHP..?
we can create a site using javascript+HTML+CSS and its also easy to update and same in php, so why PHP is most popular?
Please Tell me Merits and Demerits of both...
Thanks!Smile
PHP is a server side language, Javascript is a client side language. Two completely different things.

http://en.wikipedia.org/wiki/PHP
http://en.wikipedia.org/wiki/Javascript
(2012-07-18, 03:47 AM)Nathan Malcolm Wrote: [ -> ]PHP is a server side language, Javascript is a client side language. Two completely different things.

http://en.wikipedia.org/wiki/PHP
http://en.wikipedia.org/wiki/Javascript

Thanks for this information but both has same work, isn't it?
i have a site which fully depends on javascript
No, they are completely different. JavaScript works in the web browser and PHP works on the server.
(2012-07-18, 03:53 AM)Paul H. Wrote: [ -> ]No, they are completely different. JavaScript works in the web browser and PHP works on the server.
Thanks!
Really, you should be running PHP + JS + HTML + CSS Toungue You get the benefits of a dynamic site, with the prettiness of CSS, structure of HTML and fancy stuff provided by javascript Smile
(2012-07-18, 05:45 PM)Tom K. Wrote: [ -> ]Really, you should be running PHP + JS + HTML + CSS Toungue You get the benefits of a dynamic site, with the prettiness of CSS, structure of HTML and fancy stuff provided by javascript Smile

YUP, JS+CSS+HTML is ok but what about PHP, i think i should learn this as soon as, isn't it?
(2012-07-18, 03:51 AM)RahulSaini Wrote: [ -> ]i have a site which fully depends on javascript

Node.js, by chance?
(2012-07-18, 08:17 PM)CAwesome Wrote: [ -> ]
(2012-07-18, 03:51 AM)RahulSaini Wrote: [ -> ]i have a site which fully depends on javascript

Node.js, by chance?

well i create my own site script, no copied from others Smile
(2012-07-19, 01:01 AM)RahulSaini Wrote: [ -> ]
(2012-07-18, 08:17 PM)CAwesome Wrote: [ -> ]
(2012-07-18, 03:51 AM)RahulSaini Wrote: [ -> ]i have a site which fully depends on javascript

Node.js, by chance?

well i create my own site script, no copied from others Smile

From JS?
Pages: 1 2