aeroboy Posted July 31, 2006 Share Posted July 31, 2006 hello, I had some ASP script translated into php (with which I used the asp2php translator found at [url=http://asp2php.naken.cc/]http://asp2php.naken.cc/[/url]).Everything worked out, except for one thing. Basically, I need to set $AuthX as an object of type "AUTHXOCX.AuthXOCXCtrl.1"Can anyone help? I realize that this is a simple object question, but I am new to php, and haven't delved into objects. Please and thank you. Link to comment https://forums.phpfreaks.com/topic/16120-problems-with-objects/ Share on other sites More sharing options...
aeroboy Posted July 31, 2006 Author Share Posted July 31, 2006 To anyone who wants to display the username entered through AuthentiX 's basic authentication, use the following code: [code]<?php$AuthX = new COM("AUTHXOCX.AuthXOCXCtrl.1");$currentUser = $Authx->Base64UserName($_SERVER["HTTP_AUTHORIZATION"]);echo "currentUser = " . $currentUser;[/code]This will output: currentUser = aeroboy!!!! 8) Link to comment https://forums.phpfreaks.com/topic/16120-problems-with-objects/#findComment-66517 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.