";
cgi_manipulate ();
// echo "*** from couchdb_update.php *** end Aug/29/2011 ***
";
// ------------------------------------------------------------------
function cgi_manipulate ()
{
$arry_param = array ();
if (isset ($_REQUEST['my_data']))
{
$out_str = "";
$count = 0;
$json_received = $_REQUEST['my_data'];
// echo "--- json_received ---
";
// echo $json_received;
// echo "--------
";
$root=json_decode ($json_received);
$id_target = $root->_id;
// echo $id_target . "
";
// echo "--------
";
$url_target = "http://localhost:5984/city/" . $id_target;
curl_put_proc ($url_target,$json_received);
// echo "*** OK ***";
}
else
{
echo "*** NG ***";
}
}
// ------------------------------------------------------------------
?>