Server-side JavaScript, e.g. PHP

Now I'm going to install my server code in JavaScript and start doing all this, but I want to know about its security and flexibility compared to PHP.

I also want to know if it can be successfully used to develop things like forums, full websites, etc., like PHP does.

+5
source share
8 answers

Javascript is just starting to get some presence on the server with things like ServerJS and nodeJS , but right now you will probably be best off using PHP for your server side code and javascript for client side beautification.

+9
source

The question is very, very broad. Interpreting it as "can I use Javascript on the server":

In principle, of course, Javascript is a very powerful language, so you can create a server version on it, as well as on the client side (and if you use client-side scripts, you get certain reuse advantages using Javascript on the server).

Etc. .. .. .

, , PHP. - Rhino Java JScript IIS (- , ), , , Javascript . , wiki (), , , PHP, Javascript .

+6

, PHP JavaScript . ( JavaScript, , -.)

, JavaScript ( ), , PHP.

, , , - .., PHP.

, Javascript . , , PHP - , ASP, Python, Ruby, Perl....

+5

PHP Javascript, Javascript, . Mozillas Rhino Javascript JVM, , , Google Javascript. :

Aptanas Jaxer , , DOM , . , node.js Javascript , . Javascript (: -).

+2

, :
-, haXe.

, ( ) JavaScript PHP-, - NekoVM. JavaScript NodeJS.

, . API neko PHP , , neko PHP. , , PHP , , eaccelerator, .

haXe , JavaScript PHP. , , , , .

0

, node.js

websvr, Java , debian OS.

0

: . Javascript - . , , , PHP.

EDIT: , Javascript , , .

5 : , 5 , , , , , node.js. , !

-1

PHP and JavaScript are two different languages ​​that do two different things. You can not replace another. You are most likely going to use a combination of the two. JavaScript for the client side. PHP for server applications.

-3
source

All Articles