"Permission denied" could also probably indicate (in addition to what's already been mentioned) that there's authentication needed. If you connect with a web browser, do you get a login prompt window pop up? Not an HTML one, but one of the the basic HTML Auth type stuff?
Try pointing your script to a site that you know doesn't have anything funky with it and see if you get the same issue. -TG > -----Original Message----- > From: Brent Clements [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 29, 2004 9:49 AM > To: Brent Clements; [EMAIL PROTECTED] > Subject: Re: [PHP] I have a really stupid question, just > trying to debug a script though. > > > I'm going to change this question up a bit. The error is this one: > > "Warning: fsockopen(): unable to connect to www.example.com:80 in > /home/u5/lentesta/html/socket.php on line 2 > Permission denied (13)" > > What are some reasons we'd get this? Would a firewall or > local system tcp/ip > filtering prevent socket operations from occuring? > > Thanks, > Brent > > > ----- Original Message ----- > From: "Brent Clements" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, September 29, 2004 8:41 AM > Subject: [PHP] I have a really stupid question, just trying to debug a > script though. > > > I know what this means, but what are some reasons why we > would get this > error? > > Warning: fsockopen(): unable to connect to 128.42.244.20:80 > > Thanks, > Brent > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php