<input type="text" name="uin"><br><input type="submit" value="Проверить">
$uin = file_get_contents('http://www.google.ru/search?hl=ru&q='); if(preg_match("#<b>(.*)</b>#", $calc, $find)) { $send .= $find[0]; }
// !считай else if (preg_match("#^!считай#", $msg_text)) { preg_match("#\s+(.+)#", $msg_text, $msg); if(!empty($msg[0])) { $msg[1] = str_replace("+","%2B",$msg[1]); $msg[1] = str_replace("'","",$msg[1]); $msg[1] = str_replace("\"","",$msg[1]); $calc = file_get_contents('http:// www.google.ru/search?hl=ru&q='.$msg[1]); if(preg_match("#<b>(.*)</b></h2>#", $calc, $find)) { $send .= $find[0]; } else { $send = 'Пусто О_О';; } } else { $send = 'Косяк ^_^'; } }