Jump to content

problems with objects


aeroboy

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. 
Link to comment
https://forums.phpfreaks.com/topic/16120-problems-with-objects/
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)
Link to comment
https://forums.phpfreaks.com/topic/16120-problems-with-objects/#findComment-66517
Share on other sites

Archived

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

×
×
  • Create New...

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.