don't understand...

Help
Anonymous
2004-09-20
2013-05-30
  • Anonymous - 2004-09-20

    hello,

    i hardly try to test this script but it doesn't work,
    is there somebodu that could help me ?

    $submit_url = "http://fr.altavista.com/web/results";
       
        $submit_vars["q"] = "test";
        $submit_vars["submit"] = "";
        $submit_vars["searchhost"] = "Altavista";
           
        $snoopy->submit($submit_url,$submit_vars);
        print $snoopy->results;

    thanks a lot

    ricco

     
    • Auzzie

      Auzzie - 2004-10-15

      Did you initalize Snoopy?

      include('Snoopy.inc.php');
      $snoopy = new Snoopy();

      Also, if you set the submit var 'submit' to nothing, it might cause problems at altavista. It depends on how altavista recognizes if a page has been submitted- and this I dont know. but in the example, it has submit = 'Search!' .

      -auz

       
    • Gene Wood

      Gene Wood - 2004-10-16

      You also have to semicolons at the end of your first line.

      What error messages are you getting when it doesn't work?

       
    • Gene Wood

      Gene Wood - 2004-10-16

      Sorry, typo.

      I was trying to say that you have two semicolons at the end of your first line.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks