<?php
function sc_send( $text , $desp = '' ,$template='' ,$topic='' ){
$postdata = http_build_query(
array(
'title' => $text,
'content' => $desp,
'token' => '',
'template'=> $template,
'topic'=> $topic
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);
$context = stream_context_create($opts);
return $result = file_get_contents('http://www.pushplus.plus/send', false, $context);
}
//sc_send("12312","123123321","html","sys");
?>