$addsqladdres="https://m.huaxio.cn/dbapi/getapi.php"; $post_data = array( 'apiname' => '',//你的接口名称 'apipswd' => '',//你的接口密码 'getysql' => '',//要执行的语句 ); function send_post($url, $post_data) { $postdata = http_build_query($post_data); $options = array( 'http' => array( 'method' => 'POST', 'header' => 'Content-type:application/x-www-form-urlencoded', 'content' => $postdata, 'timeout' => 15 * 60 ) ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); return $result; } $results=send_post($addsqladdres, $post_data); echo $results;
$addsqladdres="https://m.huaxio.cn/dbapi/getapi.php";
$post_data = array(
'apiname' =...
发表评论