diff --git a/demo-client/php/echo.php b/demo-client/php/echo.php index d95c7a84d41444136f3ef804f56409a2beded223..cfc50a4e2ef837c1899043abd14798b935fb43cb 100644 --- a/demo-client/php/echo.php +++ b/demo-client/php/echo.php @@ -34,6 +34,7 @@ function http_post($url, $data) { curl_close($ch); return $result; } + //key value 数组,如果多,后面用逗号分开key =>value ,key1 => value1 ,.... echo http_post('http://127.0.0.1:8010/BuiltinTestEchoService/inference', array("a" => 1, "b" => 0.5)); ?> diff --git a/demo-client/php/text_classification.php b/demo-client/php/text_classification.php index 2e4571619be3c9b797f9ce3b73671c86ebe55008..f924135e284bd6807ff648944d3447635409bd73 100644 --- a/demo-client/php/text_classification.php +++ b/demo-client/php/text_classification.php @@ -100,8 +100,6 @@ $labels = array(); read_data($argv[1], $samples, $labels); echo count($samples) . "\n"; -// key value 数组,如果多,后面用逗号分开key =>value ,key1 => value1 ,.... - $ch = &http_connect('http://127.0.0.1:8010/TextClassificationService/inference'); $count = 0;