#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2017
    Posts
    2
    Rep Power
    0

    Arrow Web services & mobile apps


    Hello everyone,

    I'm new in this forum, I'm working as a business development executive, our company developing projects in the PHP and Node.js platform.
    I need to know the interaction between the web code - web services - mobile apps.

    And how Node.js better than PHP, why Node.js call it as service side scripting language.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,312
    Rep Power
    630
    Its apples and oranges and generally you use both. PHP is a server side language. It generates dynamic pages that are statically output to browsers. Node.js is javascript which is client side. It is code embedded in web pages (which can be generated by PHP and frequently is) that execute in browsers (which the user can turn on/off). There is also a javascript extension called Ajax which can communicate with the server while running on the client and can request PHP or any other script be executed on the server for communication between the 2. Obviously there are lots of restrictions that prevent hacking into the server or executing code on the client without the user's permission.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2017
    Posts
    2
    Rep Power
    0
    Thank you for your answers,

    Someone said, PHP is the client side scripting language and Node.js is the server side scripting language. But you said PHP is a server side language, that means, PHP is the server side and Node (JS) is the client side language, or JS is both client & server side language?
    Server side scripting and server side language both are different?

    In our company, they are developing mobile app projects by using PHP/JS (web), Android - Java, IOS - Objective C/Swift.
    That means, the user request something from the App, that request will send to the server (PHP/JS programm will run), and the server will give the response to the App?
    Someone kindly help me.
  6. #4
  7. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,280
    Rep Power
    2039
    The easiest way of putting it is...

    Client (web page, app, etc) makes a request to the server. The server actions that request and decides on what to send back based on the business logic and rules that are set. The client reads the response from the server and displays this to the user.

    As for languages, JavaScript is mostly front-end (client), but can also be used on the server these days. PHP is strictly server-side. Java can be both client and server, and the iOS languages are all client side, as that's what's used to program the apps. Overall language uses doesn't matter as long as the job gets done and whatever code is produced is maintainable in the future.

IMN logo majestic logo threadwatch logo seochat tools logo