fixed,

chuck

----- Original Message -----
From: "Charles Williams" <[EMAIL PROTECTED]>
To: "Php-General (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, April 17, 2002 2:34 PM
Subject: [PHP] FreeBSD fsockopen problem


> Hey all,
>
> I am in need of opening a UDP socket on a FreeBSD box.  The following code
> works in Linux but not in FreeBSD.  In FreeBSD $fp returns a valid
resource
> number and $error equals 0 (no error), but there is NO service on that
port
> when testing it.
>
>     $fp = fsockopen ("udp://" . $tmpserver, $tmpport, $errno, $errstr,
25);
>     echo "$fp , $errno , $errstr";
>   if(!$fp)
>   {
>     $tpl->parse("CONTENT", "notconnected", false);
>     $tpl->parse("OUT", "main", false);
>     $tpl->p("OUT");
>     exit;
>   }
>
> In other words the block in the "if" statement doesn't execute.
>
> Anyone have any ideas what this is?
>
> thanks,
> chuck
>
>
>
> --
> 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

Reply via email to