I use this php script to get the result from a simple search query registered here
And I downloaded this excel property metadata file here
$rets_login_url = "http://sef.rets.interealty.com/Login.asmx/Login";
$rets_username = "xxxxxxxx";
$rets_password = "xxxxxxxx";
$rets_user_agent = "PHRETS/1.0";
$rets_user_agent_password = "xxxxxxx";
$rets = new phRETS;
$rets->AddHeader("RETS-Version", "RETS/1.5");
$rets->AddHeader("User-Agent", $rets_user_agent);
echo "+ Connecting to {$rets_login_url} as {$rets_username}<br>\n";
$connect = $rets->Connect($rets_login_url, $rets_username, $rets_password, $rets_user_agent_password);
if ($connect) {
echo " + Connected<br>\n";
}
else {
echo " + Not connected:<br>\n";
print_r($rets->Error());
exit;
}
$search = $rets->SearchQuery("Property","ResidentialProperty","(ListDate=1990-01-01+)");
while ($listing = $rets->FetchRow($search)) {
echo "Address: {$listing['StreetNumber']} {$listing['StreetName']}, ";
echo "{$listing['City']}, ";
echo "{$listing['State']} {$listing['ZipCode']} listed for ";
echo "\$".number_format($listing['ListPrice'])."\n";
}
$rets->FreeResult($search);
echo "+ Disconnecting<br>\n";
$rets->Disconnect();
when I run this script, it shows that the result is connected and then disabled. But no result was found. I tried many things suggested on some issues, for which the result was not shown, but nothing works for me. Where am I mistaken?
Information about my RETS server is here:
RETS server: SEF RETS system RETS system identifier: SEFRETS Login URL: http://sef.rets.interealty.com:80/Login.asmx/Login
RETS Version: 1.5 Server software: Microsoft-IIS / 6.0
, $rets_modtimestamp_field = "LIST_87";
, . , RETS.