Connecting and logging in

The constructor initializes some variables through init() when envoked. Arguments are all optional. If arguments are given, steam_connector tries to connect to the defined sTeam-server.

require_once( "steam_connector.class.php" );
$steam_con = new steam_connector(
       
"your.steamserver.org ", 1900, "root", "steam" );
if( !
$steam_con->get_login_status() )
      die (
”Not connected” );
$user = $steam_con->get_login_user() ;
. . .
$steam_con->disconnect() ;
?>