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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.