Re: fsockopen error messages
| From: | Myron Turner | Date: | Mon, 06 Nov 2006 22:37:06 +0000 |
| Subject: | Re: fsockopen error messages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244288@lists.php.net to get a copy of this message | ||
You may have your host incorrectly set. I posted an example yesterday of how to use sockets with POST under the thread ": [PHP] XML Sending problem"
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
--
_____________________
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/