Best way to implement a Rest API with PHP on Wamp web server

Posted by DomingoSL on Stack Overflow See other posts from Stack Overflow or by DomingoSL
Published on 2010-05-24T01:46:35Z Indexed on 2010/05/24 1:50 UTC
Read the original article Hit count: 338

Filed under:
|
|

Hello, i own a web server running windows (WAMP). I want to know the best way to implement a Rest API (a very simple one) in order to let a user do something.

Diagram flow:

alt text

I have programming skills, in fact, i developed some time ago a web server in VB6 who process the querys and when it find the command (http:/serverIP/webform.php?cmd=run&item=any) it do something, but know i really want to develop a solution using the WAMP server.

Some people consider the solution of executing a exe when a command is detected a bad solution for security issues, but this specific proyect i have is for the use of only some people (trusted people) who dont have intentions of hacking the server.

So, what do you think?

Remember:

  1. Its not a public API, its for some people and some programs who will use the API
  2. Its a very simple one, only one command using POST or GET.

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about api