[PHP] Re: fsockopen failed with permission denied error...

2004-02-20 Thread Scott Fletcher
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 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: fsockopen failed with permission denied error...

2004-02-19 Thread Justin Patrin
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php