21,886
社区成员
发帖
与我相关
我的任务
分享
$host = 'smtp.163.com';
$port = 25;
$smtp_conn = fsockopen($host, # the host of the server
$port, # the port to use
$errno, $errstr, # error message if any
10); # give up after ? secs
var_dump($smtp_conn); exit;
$host = 'localhost';
$port = 80;
$smtp_conn = fsockopen($host, # the host of the server
$port, # the port to use
$errno, $errstr, # error message if any
10); # give up after ? secs
var_dump($smtp_conn); exit;