php查询功能突然没有用,php – 为什么搜索查询没有在PHRETS中显示任何结果?
我正在使用這個(gè)
PHP腳本從一個(gè)簡(jiǎn)單的搜索查詢獲得結(jié)果
here
我已經(jīng)下載了屬性here的元數(shù)據(jù)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();
當(dāng)我運(yùn)行此腳本時(shí),它顯示連接的結(jié)果,然后斷開連接.但沒有找到結(jié)果.我試了很多關(guān)于結(jié)果沒有顯示的問題的建議,但沒有什么對(duì)我有用.哪里錯(cuò)了?
我的RETS服務(wù)器信息在這里:
RETS服務(wù)器:SEF RETS系統(tǒng)
RETS系統(tǒng)ID:SEFRETS
登錄URL:http://sef.rets.interealty.com:80/Login.asmx/Login
RETS版本:1.5
服務(wù)器軟件:Microsoft-IIS / 6.0
我也無法理解什么是$rets_modtimestamp_field =“LIST_87”;
請(qǐng)幫我.我需要一些關(guān)于如何從RETS獲取數(shù)據(jù)的建議.
總結(jié)
以上是生活随笔為你收集整理的php查询功能突然没有用,php – 为什么搜索查询没有在PHRETS中显示任何结果?的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php安装dat,PHP Parsing
- 下一篇: php 水平测试,测试您的 PHP 水平