toby2tongues@hotmail.com (toby casey) wrote in message news:<ba949ce6.0407172201.f6cc2d4@posting.google.c om>...[color=blue]
>
toby2tongues@hotmail.com (toby casey) wrote in message news:<ba949ce6.0407171636.39932c86@posting.google. com>...[color=green]
> > Dear all,
> >
> > I am brand new to php, but learning quickly. I need to be able to go
> > to website, obtain the form elements, cycle through the form elements,
> > fetch the links for each page that results from the submission of the
> > form elements, and then fetch all the content of the pages refered in
> > the links (its approx 115,000 links). If i understand it right,
> > Snoopy is the way to go with this. But the problem is, is that we
> > cannot get snoopy to work (expect for the submit function). I have
> > gone through all the text files that come with snoopy, and even when
> > we just cut and paste the example code from the text files, it does
> > not work. for example, when we pasted the fetchtext function example
> > code we got the following error:
> > ............
> >
> > Notice: Undefined variable: postdata in
> > c:\inetpub\wwwroot\gasearch\dev\test files\Snoopy.class.inc on line
> > 1153
> >
> > Warning: fsockopen(): php_network_getaddresses: gethostbyname failed
> > in c:\inetpub\wwwroot\gasearch\dev\test files\Snoopy.class.inc on line
> > 1092
> >
> > Warning: fsockopen(): unable to connect to lnk.ispi.net:80 in
> > c:\inetpub\wwwroot\gasearch\dev\test files\Snoopy.class.inc on line
> > 1092
> >
> >
> > Notice: Uninitialized string offset: 0 in
> > c:\inetpub\wwwroot\gasearch\dev\test files\snoopyfetch.php on line 23
> >
> > Notice: Uninitialized string offset: 1 in
> > c:\inetpub\wwwroot\gasearch\dev\test files\snoopyfetch.php on line 24
> >
> > Notice: Uninitialized string offset: 2 in
> > c:\inetpub\wwwroot\gasearch\dev\test files\snoopyfetch.php on line 25
> >
> > ............
> > we made absolutely no changes to the code, just a simple cut and
> > paste. Given the way that snoopy is discussed on various groups, we
> > get the feeling that this is a really easy class function to use,
> > which leads us to believe that we are missing some very simple step.
> > please if anybody can help us out we would be greatful, or better yet,
> > if anybody has done a task simular to ours at hand, if you could just
> > post some code as to how you did it....thank you for your time.[/color]
>
> We are running php 4.3.7, windows xp, and the Windows IIS[color=green]
> >
> > toby[/color][/color]
Does Snoopy have some kind of configuration file that needs to be set?
It almost seems like the variables are not coming through, which makes
me wonder if Snoopy assumes that the posted variables are
automatically becoming global variables. If so, check to see if
register_globals is set in the php.ini file.