Menu

#12 picture links problem - still relative

open
nobody
None
5
2002-08-19
2002-08-19
john cummin
No

i've used this code to get a page

<?php
include "Snoopy.class.inc";
$snoopy=new Snoopy;
$snoopy->fetch("http://www.whatever.com/");
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

Discussion

  • naeembhatti

    naeembhatti - 2006-10-04

    Logged In: YES
    user_id=1600577

    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.

     

Log in to post a comment.