AnsweredAssumed Answered

Error in BaseObject.php (Urgently)

Question asked by maqsood on Oct 4, 2010
Latest reply on Oct 6, 2010 by maqsood

I am trying to execute the below PHP script but getting error on browser
Fatal error: Cannot redeclare class AlfBaseObject in C:\xampp\htdocs\Alfresco\Alfresco\Service\BaseObject.php on line 27

not able to figure out whats the actual error.
Any help appreciated!!

include ("Repository.php");
include ("Session.php");

   $repositoryUrl = "http://localhost:8080/alfresco/api";
   $userName = "admin";
   $password = "admin";

   $repository = new Repository($repositoryUrl);

    $ticket = $repository->authenticate($userName, $password);

   $session = $repository->createSession($ticket);
   <title>Basic Tutorial One - Authentication</title>

       <big>Basic Tutorial One - Authentication</big>
              Connected to repository <?php echo $repositoryUrl ?>
              as user <?php echo $userName ?>
              with ticket <?php echo $ticket ?>