Fatal error: Call to a member function on a

Help
Vince
2002-10-14
2004-03-06
  • Vince

    Vince - 2002-10-14

    Hey,

    i keep getting this error: Fatal error: Call to a member function on a non-object in /home/elementa/public_html/musicforya/admin/test.php on line 3.

    i was just seein if it worked, just using the code in the readme:<?php
    include("Snoopy.class.inc");
    $snoopy->fetchtext("http://www.cnn.com");
        print $snoopy->results
    ?>
    any ideas why i'm gettin this error? i'm using PHP 4 on Apache (Unix).

    Thanks
    Vince

     
    • Denzo

      Denzo - 2004-03-06

      change your code to:

      <?php
      include("Snoopy.class.inc");
      $snoopy = new Snoopy;
      $snoopy->fetchtext("http://www.cnn.com";);
      print $snoopy->results;
      ?>

       
    • Denzo

      Denzo - 2004-03-06

      i meant

      <?php
      include("Snoopy.class.inc");
      $snoopy = new Snoopy;
      $snoopy->fetchtext("http://www.cnn.com");
      print $snoopy->results;
      ?> 

       

Log in to post a comment.