Jump to content

Archived

This topic is now archived and is closed to further replies.

aeroboy

problems with objects

Recommended Posts

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. 

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.