Skip to content
Troy Davisson edited this page Mar 5, 2016 · 2 revisions

Note: This page documents capabilities available in the older 1.x version. Please see this repository's README file for the new 2.x version documentation.

Connect

Connect ( string $login_url, string $username, string $password [, string $ua_pwd ] )

Parameters

$login_url - Full Login URL to the RETS server
$username - Login username
$password - Login password
$ua_pwd - Optional. User-Agent Password. Default is blank. If not blank, User-Agent Authentication is forced.

Return Value

If any part of the initial connection failed, returns FALSE (check Error for details). Otherwise, returns TRUE

Changelog

1.0 - Dropped AddHeader requirements

Usage Examples

Connects

<?php
$connect = $rets->Connect("http://retsserver:6103/rets/login", "Joe", "Schmoe");
if (!$connect) {
  print_r($rets->Error());
}

Connects with User-Agent Authentication

<?php
$connect = $rets->Connect("http://retsserver:6103/rets/login", "Joe", "Schmoe", "ua-password");
Related To

SetParam, AddHeader, Disconnect