#12 picture links problem - still relative

john cummin

i've used this code to get a page

include "Snoopy.class.inc";
$snoopy=new Snoopy;
print $snoopy->results;

and it worked fine apart from a number of picture links
where broken - looked at the html code and the some of the
pictures that were relative links were still relative links

this is from the documentation that comes with snoopy:

* expands fetched links to fully qualified URLs (default)

how can i get the links absolute?

any info much appreciated :) thanks


  • naeembhatti

    naeembhatti - 2006-10-04

    Logged In: YES

    do u have found any solution for it or not yet if yes then
    please tell me also.

  • vij

    vij - 2008-10-15

    I am new to Snoopy and I am trying to use it to build an Internet gateway. Its an inhouse research project.
    I plan to setup a site through which I can browse any site. the user always stays on my site.

    I found snoopy and was checking if it can handle all redirections and translate all URLs to fully qualified domain so that my proxy code can replace all URLs in the fetched page with my own URLs.

    I found following things:
    1. windows.location tag is not handled
    2. The sourceforge documentation says that snoopy code ver 1.2.3 can form fully qualified domain names, but that is not happening. Also the TODO file mentions that it is still a todo item.

    I need to know if you any updates on this. I am new to PHP also. So as soon as I start understanding PHP I will be able to modify the snoopy code.


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

Sign up for the SourceForge newsletter:

No, thanks