udds->test ( function )
Description :
- Call : udds->test()
- Class element : method / function
- Result : bool | string
- This function uses the following properties : udds->myLogin, udds->myConfigId
Check if user (login) has access to UDDS Server and if properly connected to the UDDS Server.
Returns :
- true ( bool )- everything is ok
- false ( bool ) - something is wrong and you have to read udds->lastError property.
Example
<?php
//
// example file
//
require_once ( 'classUdds.php' ) ;
$udds = new classUdds ;
$udds->myLogin = [ Your UDDS Login ] ;
$udds->myConfigId = [ Your UDDS ConfigId ] ;
$udds->srvUrl = [ Your UDDS Server ] ;
$res = $udds->test () ;
print_r ( $res ) ;
if ( $res == false )
{
print_r ( $udds->lastErrorId ) ;
}
unset ( $udds ) ;
?>
Live mode example:
OK