Jump to content


Photo

problems with objects


  • Please log in to reply
1 reply to this topic

#1 aeroboy

aeroboy
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 31 July 2006 - 05:18 PM

hello,

I had some ASP script translated into php (with which I used the asp2php translator found at http://asp2php.naken.cc/).
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. 

#2 aeroboy

aeroboy
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 31 July 2006 - 06:22 PM

To anyone who wants to display the username entered through AuthentiX 's basic authentication, use the following code:
<?php
$AuthX = new COM("AUTHXOCX.AuthXOCXCtrl.1");
$currentUser = $Authx->Base64UserName($_SERVER["HTTP_AUTHORIZATION"]);
echo "currentUser = " . $currentUser;

This will output:

currentUser = aeroboy

!!!! 8)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users