hallo, weis von euch vllt jemand warum da ned conected wird.
allow_url_fopen ist aktiv.
Warning: fsockopen() [function.fsockopen]: unable to connect to www.google.com:80 (Connection refused) in ............on line 95
Connection refused (111)
das ist die funktion
function getRank($url){
$ch = "6".$this->GoogleCH($this->strord("info:" . $url));
$pagerank=-1;
$fp = fsockopen("www.google.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET /search?client=navclient-auto&ch=" . $ch . "&features=Rank&q=info:" . $url . " HTTP/1.1\r\n" ;
$out .= "Host: www.google.com\r\n" ;
$out .= "Connection: Close\r\n\r\n" ;
fwrite($fp, $out);
while (!feof($fp)) {
$data = fgets($fp, 128);
$pos = strpos($data, "Rank_");
if($pos === false){
}else{
$pagerank = trim(substr($data, $pos + 9));
}}
fclose($fp);
}
return ($pagerank < 0)?0:$pagerank;
}}
grüße chitypo