{"version":"1.0","provider_name":"\u0427\u0443\u0434\u043e{\u0432\u0438\u0449\u043d\u044b\u0435} \u0437\u0430\u043c\u0435\u0442\u043a\u0438","provider_url":"https:\/\/miracle.rpz.name","author_name":"MiRacLe","author_url":"https:\/\/miracle.rpz.name\/author\/miracle\/","title":"file_post_contents","html":"\u0414\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0447\u0430\u0441\u0442\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441 - \u043a\u0430\u043a \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 php \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c POST \u0437\u0430\u043f\u0440\u043e\u0441 (\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442). \u0418 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u044d\u0442\u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441:\r\n<ol>\r\n\t<li><a href=\"http:\/\/php.net\/curl\">curl<\/a> (\u0441\u0430\u043c\u044b\u0439 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u043d\u0435 \u0432\u0435\u0437\u0434\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439)<\/li>\r\n\t<li><a href=\"http:\/\/php.net\/fsockopen\">fsockopen <\/a> (\u0441\u0430\u043c\u044b\u0439 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431)<\/li>\r\n\t<li><a href=\"http:\/\/php.net\/http\">http<\/a> (extension \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0438 \u0441\u043e\u0432\u0435\u0442\u0443\u044e\u0442 \u0435\u0433\u043e \u043d\u0435\u0447\u0430\u0441\u0442\u043e)<\/li>\r\n<\/ol>\r\n\u0421\u043f\u0435\u0448\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c:\r\n<pre class=\"php:nocontrols\"> \r\n$postfields = http_build_query( array ('var1' =&gt; 'value 1', 'var2' =&gt; 'value 2',));\r\n$opts = array('http' =&gt;\r\n   array(\r\n      'method'  =&gt; 'POST',\r\n      'header'  =&gt; 'Content-type: application\/x-www-form-urlencoded',\r\n      'content' =&gt; $postfields,\r\n   )\r\n);\r\n$context  = stream_context_create($opts);\r\n$result = file_get_contents('http:\/\/example.com\/action.php', false, $context);\r\n<\/pre>\r\n\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e - \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 extension-\u044b \u0438 \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0441 fsockopen \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \"\u0433\u0440\u044f\u0437\u043d\u043e\u0439\" \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u043e\u0437\u044c\u043c\u0451\u0442 \u043d\u0430 \u0441\u0435\u0431\u044f <a href=\"http:\/\/php.net\/stream_context_create\">stream_context_create<\/a>.\r\n\r\n\u041f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e <a href=\"http:\/\/www.khankennels.com\/blog\/index.php\/archives\/2007\/09\/17\/streams-gem\/\">\u0432\u043e\u043d \u0442\u0430\u043c<\/a>.\r\n\r\nP.S.\r\n\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0441\u0442\u0430 \u0433\u043b\u0443\u043f\u043e\u0435, \u043d\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u043d\u0435 \u0438\u0434\u0451\u0442. ;o)\r\n\r\nTechnorati Tags: <a href=\"http:\/\/technorati.com\/tag\/dev\" class=\"performancingtags\" rel=\"tag\">dev<\/a>, <a href=\"http:\/\/technorati.com\/tag\/php5\" class=\"performancingtags\" rel=\"tag\">php5<\/a>","type":"rich"}