I have been trying unsuccessfully to connect to a REST server to get MLS data, pretty much all php scripts/classes use fsockopen to connect and I realized for some reason I can't even get the simple fsockopen function to connect.
Ive been told that the rest server is valid, is there something im doing wrong with the fsockopen function? I just cant seem to get it to connect. This is the error:
Warning: fsockopen() [function.fsocko pen]: unable to connect to rets17lax.rapre ts.com:6103 (Connection refused)
Thanks!
Code:
$url = "rets17lax.raprets.com";
$port=6103;
$fp = fsockopen($url,$port,$errno,$errstr,30);
if (!$fp) {
echo "$errstr ($errno)<br />n";
} else {
echo '
Socket connection created to <strong>' . $url . '</strong> on port <strong>' . $port . '</strong>
';
}
Warning: fsockopen() [function.fsocko pen]: unable to connect to rets17lax.rapre ts.com:6103 (Connection refused)
Thanks!
Comment