这段PHP代码如何转换ASP!
我不懂ASP,那个仁兄都指点一下,谢谢
$msg_sock = "<xml><task><ServerName>WELLPAY_SERVER_RUNUPBANK</ServerName><CommandName>WELLPAY_CHECKSALENO_CMD</CommandName><saleno>".$par_otp."</saleno></task></xml>";
$new_socket = socket_create(AF_INET,SOCK_STREAM,SOL_TCP);
$new_conn = socket_connect($new_socket,'203.70.21.242',8668);
if ($new_conn < 0)
{
alert('发送数据验证失败1',"index.php",3);
}
$sendnum = socket_send($new_socket,$msg_sock,strlen($msg_sock),0);
if ($sendnum > 0)
{
socket_recv($new_socket,$otp_rs,1024,0);
}
socket_close($new_socket);