-
Notifications
You must be signed in to change notification settings - Fork 235
Connect
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 ( string $login_url, string $username, string $password [, string $ua_pwd ] )
$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.
If any part of the initial connection failed, returns FALSE (check Error for details). Otherwise, returns TRUE
1.0 - Dropped AddHeader requirements
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");