اکثرا این روش رو نمیدونند
نیاز به پست اطلاعات با سوکت یا کرل یا چیز های دیگه نیست !
ساده ترین راه رو بیان میکنم
$postdata = http_build_query(
array(
'var1' => 'some content',
'var2' => 'doh'
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);
$context = stream_context_create($opts);
$result = file_get_contents('http://example.com/submit.php', false, $context);
ارایه $postdata اطلاعات شما هست ، به صورت
motaghayer => meghdar