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. Quote 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) Quote Link to comment https://forums.phpfreaks.com/topic/16120-problems-with-objects/#findComment-66517 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.