AnsweredAssumed Answered

Error in BaseObject.php (Urgently)

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

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!!


<?php
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);
?>
<html>
   <head>
   <title>Basic Tutorial One - Authentication</title>
   </head>

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

Outcomes