php查询功能突然没有用,php – 为什么搜索查询没有在PHRETS中显示任何结果?
我正在使用這個
PHP腳本從一個簡單的搜索查詢獲得結果
here
我已經下載了屬性here的元數據excel文件
$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";
//
// start rets connection
$rets = new phRETS;
// Uncomment and change the following if you're connecting
// to a server that supports a version other than RETS 1.5
$rets->AddHeader("RETS-Version", "RETS/1.5");
$rets->AddHeader("User-Agent", $rets_user_agent);
echo "+ Connecting to {$rets_login_url} as {$rets_username}
\n";
$connect = $rets->Connect($rets_login_url, $rets_username, $rets_password, $rets_user_agent_password);
// check for errors
if ($connect) {
echo " + Connected
\n";
}
else {
echo " + Not connected:
\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
\n";
$rets->Disconnect();
當我運行此腳本時,它顯示連接的結果,然后斷開連接.但沒有找到結果.我試了很多關于結果沒有顯示的問題的建議,但沒有什么對我有用.哪里錯了?
我的RETS服務器信息在這里:
RETS服務器:SEF RETS系統
RETS系統ID:SEFRETS
登錄URL:http://sef.rets.interealty.com:80/Login.asmx/Login
RETS版本:1.5
服務器軟件:Microsoft-IIS / 6.0
我也無法理解什么是$rets_modtimestamp_field =“LIST_87”;
請幫我.我需要一些關于如何從RETS獲取數據的建議.
總結
以上是生活随笔為你收集整理的php查询功能突然没有用,php – 为什么搜索查询没有在PHRETS中显示任何结果?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php安装dat,PHP Parsing
- 下一篇: php 水平测试,测试您的 PHP 水平