Re: FreeBSD fsockopen problem

From: Date: Thu, 18 Apr 2002 10:00:16 +0000
Subject: Re: FreeBSD fsockopen problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93502@lists.php.net to get a copy of this message
fixed, chuck ----- Original Message ----- From: "Charles Williams" <hosting.mailing.list.account@acnshosting.com> To: "Php-General (E-mail)" <php-general@lists.php.net> 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 >

« previous php.general (#93502) next »