Asked by duncanb7
at 2024-07-27 22:41:07
Point:500 Replies:9 POST_ID:829131USER_ID:11059
Topic:
JavaScript;Web Browsers;PHP Scripting Language
one day, I found one updated javascript application code embedded into the webpage I access daily and my apache server php coding could not collect the data information becoz the code is written in javascript, it mean only allow client collect in browser to collect the data. Finally, I solved it by node.js installed in my apached sever and using php command of exec("node myjavscript.js")
-First question is brower can run javascript code if javascript is enabled on browser that is
NOT depended on linux or window system , Right ? In other words, javascript running is
Not related to computer system architecture.
-Seoncd ,node.js installed in my server act as javascript complier similar to the action to C complier.Besides that, I don't find any special on node.js since a lot feaures which can be done on php coding on server and javascript on client. And for http access, we can have apache server instead of node.js run-time background process . Any advise about this subject.
-Finally, When I try to think about " run window command on my browse at client side or home computerr", I don't know how node.js will assist on this from his child_process module. Any comment on this? My this topic question is similar to ask how flash running into browser when flash run-time is installed on our window computer.
Please advise
Duncan
-First question is brower can run javascript code if javascript is enabled on browser that is
NOT depended on linux or window system , Right ? In other words, javascript running is
Not related to computer system architecture.
-Seoncd ,node.js installed in my server act as javascript complier similar to the action to C complier.Besides that, I don't find any special on node.js since a lot feaures which can be done on php coding on server and javascript on client. And for http access, we can have apache server instead of node.js run-time background process . Any advise about this subject.
-Finally, When I try to think about " run window command on my browse at client side or home computerr", I don't know how node.js will assist on this from his child_process module. Any comment on this? My this topic question is similar to ask how flash running into browser when flash run-time is installed on our window computer.
Please advise
Duncan