Newbies Rob Westergaard Posted June 27, 2011 Newbies Posted June 27, 2011 Hello. I'm trying to integrate SuperContainer into a PHP-based site, but I'm having trouble creating the new SuperContainer object. SuperContainer version is 2.792. I created a test page with the following: <?php require_once 'supercontainer.php'; $SC_BASE_URL = 'http://localhost:8020/SuperContainer/Files'; $SC_USERNAME = 'username'; $SC_PASSWORD = 'password'; $sc = new SuperContainer($SC_BASE_URL, $SC_USERNAME, $SC_PASSWORD); if ($sc->getError()) die('Could not connect to SuperContainer server: ' . $sc->getError()); ?> I verified that the configured username and password match the above, but I always get the result "The requested URL returned error: 401". It doesn't seem to matter what value I use for the password. If I configure SC with a username but no password, I can use the above (with an empty string as the value for $SC_PASSWORD) successfully. What am I doing wrong?
Tomas Posted June 27, 2011 Posted June 27, 2011 Hi, You are probably not doing anything wrong. This has been discussed before http://fmforums.com/forum/topic/76907-php-error/page__p__361421#entry361421
Recommended Posts
This topic is 4896 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now