For ($i =0 $i <5; $i + +) {
$pagecode = @file_get_contents ("Http://www.youdao.com/search?q=site:". $q);
if ($pagecode) {
Break
}
}
Echo $pagecode;
if ($pagecode) {
Preg_match ('/<!--result_no= (. *?) duration=/', $pagecode, $youdaos);
if ($youdaos [1]) {
$siteyoudao = $youdaos [1];
}else{
$siteyoudao = 0;
}
echo "<script type=" Text/javascript tutorial >document.getelementbyid ("Siteyoudao"). InnerHTML = "<a href=http:// Www.youdao.com/search?q=site: $q. "Target=_blank>". $siteyoudao. " </a> ";</script>";
}else{
$siteyoudao =-1;
echo "<script type=" Text/javascript ">document.getelementbyid (" Siteyoudao "). InnerHTML =" <a href=indexed/ rcsiteyoudao.php tutorial? q= ". $q." Target=recheck>u91cdu67e5</a> ";</script>";
}
For ($i =0 $i <5; $i + +) {
$pagecode = @file_get_contents ("Http://www.youdao.com/search?q=inlink:". $q);
if ($pagecode) {
Break
}
}
if ($pagecode) {
Preg_match ('/<!--result_no= (. *?) duration=/', $pagecode, $youdaol);
if ($youdaol [1]) {
$linkyoudao = $youdaol [1];
}else{
$linkyoudao = 0;
}
echo "<script type=" Text/javascript ">document.getelementbyid (" Linkyoudao "). InnerHTML =" <a href=http:// Www.youdao.com/search?q=inlink: $q. "Target=_blank>". $linkyoudao. " </a> ";</script>";
}else{
$linkyoudao =-1;
echo "<script type=" Text/javascript ">document.getelementbyid (" Linkyoudao "). InnerHTML =" <a href=indexed/ Rclinkyoudao.php?q= ". $q." Target=recheck>u91cdu67e5</a> ";</script>";
}