Re: fsockopen error messages

From: Date: Mon, 06 Nov 2006 21:12:53 +0000
Subject: Re: fsockopen error messages
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-244275@lists.php.net to get a copy of this message
Depending on your php.ini settings, it may be set up to wait FOREVER for a socket to open... What $host? What $port? Is it public? Private? Is there any authentication scheme in place? We've got nothing to work with here to help you... On Mon, November 6, 2006 2:58 pm, Philip Thompson wrote: > Hi. > > I have not dealt much with fsockopen, but after looking at many > examples, I'm not finding the answers I need. fsockopen is not > returning anything and I'm trying to find out what the issue is. The > error messages are not provided and I'm not sure what's going on. > Help please! > > <? > $fp = fsockopen($host, $port, $errno, $errstr); > > if (!$fp) { > echo "fsock NOT opened!<br/>"; > echo "Error: $errstr ($errno)<br />\n"; > } > ?> > > Thanks, > ~Philip > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#244275) next »