php API daemon process over a url -


i need background process api on url.

for example, url http://www.msite.com/myapi.php read incoming protocol , reply.

what best way accomplish scenario?

should treat regular web page?

what pros/cons using web page url api?

you should implement rest service. check this url out.

you need create proper controller (in case use mvc approach) , implement proper methods corresponding api (http request methods important topic here).
illustrate, allowed myself paste code url embedded here:

get request /api/users – list users request /api/users/1 – list info user id of 1 post request /api/users – create new user put request /api/users/1 – update user id of 1 delete request /api/users/1 – delete user id of 1 

just notice, can use different approach xml-rpc or soap.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -