Re: fsockopen error messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You may have your host incorrectly set. I posted an example yesterday of how to use sockets with POST under the thread ": 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/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux