How do you use php to communicate with App Inventors TinyWebDB component?

Google App Inventor has some information in their documentation for setting up a sample TinyWebDB webservice using python or app engine, however, I'm trying to use php. Is this possible? I've followed directions posted here but all I get is the error:\[quote\] Communication with the web service encountered a protocol exception\[/quote\]I display this error in a \[code\]label\[/code\] component on the when \[code\]TinyWebDB1.WebServiceError\[/code\] block.So here is what I have in my php files:getvalue.php\[code\]header('Cache-Control: no-cache, must-revalidate');header('Expires: Mon, 26 Jul 2010 05:00:00 GMT');header('Content-type: application/json');$retval = array("VALUE", "tagged", '"'.time().'"'); echo json_encode($retval);\[/code\]Which returns:["VALUE","tagged","\"1283093117\""]setvalue.php\[code\]$tag = $_POST['tag'];$value = http://stackoverflow.com/questions/3595187/$_POST['value'];$retval = array("STORED", '"'.$tag.'"', '"'.$value.'"');echo json_encode($retval);\[/code\]Which returns:["STORED","\"tagged\"","\"testdata\""]Thanks for any suggestions or answers.
 
Back
Top