php - How can 2 different servers communicate in the same "machine"? -


first of apologize if question doesnt make sense , new these concepts.

we building mobile web application has 2 parts.

1) "back-end" server part building , php-mysql , take care of data stored in database , make queries etc.

2) "front-end" part. developed in jquery , mobile web site. "web site" available through mobile application opening "in application browser" . note ve never used jquery before. architecture of application every time mobile phone connects web-site (jquery) , send along url deviceid of phone. when user @ site subscribe kind of events , "send" subscriptions "back-end" server , save them database.

my question :

as said dont know jquery. both jquery , php deployed in same machine. means (i guess..) through jquery have instant access databases , save users subscribtions. because dont know jquery want minimum staff it. pass these subscriptions php scripts , handle them there.

how "pass" subscriptions between 2 servers deployed in same machine? need make http post request? thats make mobile devices , connect server guess when in same machine there should way right? use http requests remote connections right?

even though jquery , php hosted on same machine, not executed on same machine.

php executed on local machine , it's results sent client (in app browser). jquery sent client , executed @ client.

so php executed on server , jquery @ client. facilitate communication should use example jquery.ajax http://api.jquery.com/jquery.ajax/ or example jquery.getjson http://api.jquery.com/jquery.getjson/


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -