/* RETS Variables */
$RETS = new PHRets();
$RETS->Connect(RETSURL, RETSUsername, RETSPassword);
$RETS->AddHeader("RETS-Version", "RETS/1.7.2");
$RETS->AddHeader('Accept', '/');
$RETS->SetParam('compression_enabled', true);
$RETS_PhotoSize = "LargePhoto";
$RETS_LimitPerQuery = 100;
This code is works with CREA RETS data.
Let me know if any question.
I have built lots of real estate site, so I can help you.
Regards
Lian