php socket 模拟post,PHP socket模拟POST请求
if (! function_exists ( ‘socket_post‘ )) {function socket_post($url, $data, $referer = ‘‘) {if (! is_array ( $data )) {return;}$data = http_build_query ( $data );$url = parse_url ( $url );if (empty ( ...