Hi,
Mein Testquelltext ist hier:
<?
include "Snoopy.class.php";
$snoopy->fetchtext("http://www.php.net/");
print ($snoopy->results);
?>
>
> Die Fehlermeldung:
> Fatal error: Call to a member function fetchtext() on a non-object in /html/Snoopy-1.2.4/test.php on line 3
>
> was habe ich fasch gemacht?
Vermutlich hast du gar keine Objektinstanz der Klasse erzeugt?
Sofern das per include eingebundene File das nicht "automatisch" macht - und das waere in aller Regel unsinnig - musst du das natuerlich selber machen.
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“