cmixolydian - 2005-02-27

Hi, I am converting my command line Perl script to online PHP script that is using Snoopy. However, my proxy setting doesn't seem to work with the PHP script, although it works with the Perl script. Here are the PHP lines I use:

    require_once "Snoopy.class.php";
    $snoopy = new Snoopy();
    $snoopy->$proxy_host = "";
    $snoopy->$proxy_port = "8080";
    print $snoopy->results;

The error is this:
Warning: fsockopen(): unable to connect to in /Library/PHP4/lib/php/Snoopy.class.php on line 1126

(the PHP script works well when given URL of intranet page, btw)

My Perl scripts use this:
my $browser = LWP::UserAgent->new;
$browser->proxy('http', '');
my $response = $browser->get($url);

What did I do wrong? :s I believe I set the proxy settings correctly