Просмотр поста

.
blackvj

muhago97,

$text = isset($_POST['submit']) ? $_POST['text'] : '';

echo '<form action = "?" method = "post">
<textarea name = "text"></textarea>
<input type = "submit" name = "submit" value = "ok" />
</form>';
$postdata = http_build_query(
array(
'topic' => mb_convert_encoding($text, "UTF-8", "CP1251"),
'reg_auth_type' => '2',
'jad_PartID' => '0',
'jad_userID' => '0',
'reg_phone' => '1366+768+0+2+%3Afirefox+40.0'
)
);

$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);

$context = stream_context_create($opts);

if(file_get_contents('http://galaxy.mobstudio.ru/services/index.php?userID=25969&password=a4ed719709de96f76590&usercur=24269&a=channels_whois2&act_set_topic=1&chanid=1282918&flash10=1&dbl=4&kbv=195&lngg=ru', false, $context)){
echo 'Контент есть';
}else{
echo 'Контента нету';
}


Правда не знаю как он работать будет. Тебе cUrl в помощь.