Re: fsockopen failed with permission denied error...

From: Date: Fri, 20 Feb 2004 17:49:31 +0000
Subject: Re: fsockopen failed with permission denied error...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-178375@lists.php.net to get a copy of this message
Hi Justin! Still have the same problem. But that's okay, I decided not to use the fsockopen() recently. Because some people seem to have this problem too. So, I'm pondering of doing a different way of using PHP. FletchSOD "Justin Patrin" <papercrane@reversefold.com> wrote in message news:20040219174712.19067.qmail@pb1.pair.com... > Scott Fletcher wrote: > > > Hi Everyone! > > > > Sample code below... > > > > --snip-- > > $fp = fsockopen("www.cnn.com", 80, $errno, $errstr, 30); > > --snip-- > > > > I get the error message, permission denied along with 13. When I read the > > bugs.php.net and found out that I need to add the "@" to it so I did this.. > > > > --snip-- > > $fp = @fsockopen("www.cnn.com", 80, $errno, $errstr, 30); > > --snip-- > > > > I get a different error message, it said ... > > > > --snip-- > > Addr family not supported by protocol (66) > > --snip-- > > > > Does anyone know what it meant and what is the workaround to it? > > > > Thanks, > > FletchSOD > > Try the example at: http://us4.php.net/fsockopen > > -- > -- > paperCrane <Justin Patrin>

« previous php.general (#178375) next »