Supportnet Computer
Planet of Tech

Supportnet / Forum / Skripte(PHP,ASP,Perl...)

PHP script





Frage

Hallo, ich habe mir ein Page rank script gekauft und es geht nicht einbandfrei. Das problem ist es wird der richtige pagerank nicht angezeigt. Ich bekomme die fehlermeldung: Warning: file(http://64.233.161.99/search?client=navclient-auto&ch=62010001427&features=Rank&q=info:http://www.popularity-web.de) [function.file]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /mnt/kw2/03/535/00000018/htdocs/www.popularity-web.de/index.php on line 118 Was heißt das ? danke

Antwort 1 von nrg76

das du kein zugriff auf die datei hast.
poste mal bitte zeile 118 von www.popularity-web.de/index.php

lg

nrg76

Antwort 2 von Art76

function getrank($url) {
$url = ´info:´.$url;
$ch = GoogleCH(strord($url));
$file = "http://www.google.com/search?client=navclient-auto&ch=6200148295&q=$url";
(das ist die zeile 118-) $data = file($file);
$rankarray = explode (´:´, $data[2]);
$rank = str_replace("\n", "", $rankarray[2]);
return $rank;

Antwort 3 von rabies

google kommt mit dem "client=navclient-auto" nicht zurecht. Lässt man das weg, funktioniert es.

hth,
Sven.

Antwort 4 von Art76

Hy,

wie sieht das dann genau aus?

$file = "http://www.google.com/search?&ch=6200148295&q=$url";

so?


Mfg Artur

Antwort 5 von rabies

Fast, aber nicht ganz, - so sollte es dann aussehen:

$file = "http://www.google.com/search?ch=6200148295&q=$url";


Sven.

Antwort 6 von Art76

hy funzt irgenwie trotzdem nicht. das ganze sieht jetzt so aus

function getrank($url) {
$url = ´info:´.$url;
$ch = GoogleCH(strord($url));
$file = "http://www.google.com/search?ch=6200148295&q=$url";
$data = file($file);
$rankarray = explode (´:´, $data[2]);
$rank = str_replace("\n", "", $rankarray[2]);
return $rank;

Ich möchte kostenlos eine Frage an die Mitglieder stellen:


Ähnliche Themen:


Suche in allen vorhandenen Beiträgen: