Re: fsockopen failed with permission denied error...

From: Date: Thu, 19 Feb 2004 17:47:07 +0000
Subject: Re: fsockopen failed with permission denied error...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178274@lists.php.net to get a copy of this message
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 (#178274) next »