Prev   Next

Back to the top of the FAQ

Q. PHP sample.

A.

<?php
$AuthX = new COM("AUTHXOCX.AuthXOCXCtrl.1") ;
$currentUser = $AuthX->CurrentUserName($HTTP_SERVER_VARS["REMOTE_HOST"],
		$HTTP_SERVER_VARS["URL"],
		$HTTP_SERVER_VARS["HTTP_AUTHXAUTHORIZATION"] ); 

echo $currentUser;
?>

Note, use HTTP_AUTHORIZATION instead of HTTP_AUTHXAUTHORIZATION above, if you are not using the workaround.

AND


<?php
        $AuthX = new COM("AUTHXISP.AuthXOCXCtrl.1");
        $currentUser =
$AuthX->CurrentUserName($HTTP_SERVER_VARS["REMOTE_HOST"],
$HTTP_SERVER_VARS["HTTP_HOST"],
$HTTP_SERVER_VARS["HTTP_AUTHORIZATION"] ); 


$AuthX->Release();
unset($AuthX);
unset($CurrentUserName);
?>


courtesy Richard Burton - www.atomwide.com

Back to the top of the FAQ

Prev   Next